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 ....
}
(This work is NOT endorsed by, sponsored by, or affiliated with any game publisher or trademark holder. All trademarks are the property of their respective owners. Some game publishers may restrict the use of third-party peripherals; please refer to the applicable game's Terms of Use. Users are responsible for ensuring their compliance with any applicable game rules or restrictions.)