Menu

Initialization

 
      A GPC script may have a init procedure, which is executed only once after the loading of script. The init block should be located immediately before the main procedure, as shown in the following example:
 
define RUMBLE_ENABLED = FALSE;
 
init {
    if(!RUMBLE_ENABLED) {
        block_rumble();
    }
}
 
main {
    // script code here ....
}