Rumble
Just like with the player LEDs, the GPC language also can handle the controller rumbles.
Related GPC Functions:
Rumble Identifiers:
Example of usage:
Once a rumble is activated by the script the rumble engine will remain activated until the script send a command to turn it off.
1. get_rumble
Returns the current value of a rumble.
Prototype:
int get_rumble ( <rumble_ident> )
Parameters:
<rumble_ident> : the identifier of a rumble
Return:
the rumble (engine) speed, can range from 0 (off) to 100 (max speed)
Example:
2. set_rumble
Set the value of a rumble (engine speed).
Prototype:
set_rumble ( <rumble_ident> )
Parameters:
<rumble_ident> : the identifier of a rumble
Return:
None
Example:
3. block_rumble
Blocks any rumble action sent by the console.
Prototype:
block_rumble ( )
Parameters:
None
Return:
None
Example:
4. reset_rumble
Unblocks the rumble (if is blocked), and set its values to 0.
Prototype:
reset_rumble ( )
Parameters:
None
Return:
None
Example:
|