Link Search Menu Expand Document

Функции глобальных скриптов

Функции


available_global_script_types

int available_global_script_types

game_loaded

int game_loaded()

Returns 1 the first time it is called after a new game or game load, and 0 any time after. It works on an individual basis for each script, so one script wont interfere with others. Its primary use is for global scripts, so that they know when to call set_global_script_repeat, but it can be called from normal scripts too.


set_global_script_repeat

void set_global_script_repeat(int frames)

Only has an effect on the script it is called from. Every global script needs its own game_loaded block to correctly set up repeat rate. Will have no effect if called on a non-global script.


set_global_script_type

void set_global_script_type(int type)

Only has an effect on the script it is called from. Every global script needs its own game_loaded block to correctly set up the script type.