GPC Developer Guides
...
Functions
Controller Functions
Rumble Functions
the cronus allows you to completely control the rumble motors on your controller, including the trigger rumble motors on an xbox one controller below are the gpc commands relating to these motors function name description get rumble returns the current value of a rumble motor set rumble sets the speed of a rumble motor block rumble blocks any rumble signals from the console reset rumble resets the rumble state and returns the condition of the motors to the console get rumble get rumble returns the speed of the chosen rumble motor on the controller in the form of an int the value returned can range from 0 to 100 which represents the speed as a percentage ( % ) gpc main { if(get rumble(rumble a) > 50) { // if rumble motor a is running greater than 50% // do something } } 🔴 syntax get rumble ( \<rumble identifier> ); ⚪ parameters \<rumble identifier> the identifier of a rumble motor 🔵 returns an int ranging from 0 to 100 which represents the current speed of the chosen motor set rumble set rumble sets the speed of the chosen rumble motor on the controller the rumble motors are numbered 0 to 3 to make it easier to remember which motor is which, four constants have been created name description value rumble a strong rumble motor (usually the left motor) 0 rumble b weak rumble motor (usually the right motor) 1 rumble rt right trigger motor (xbox one controllers only) 2 rumble lt left trigger motor (xbox one controllers only) 3 gpc set rumble(rumble a, 50); 🔴 syntax set rumble (\<rumble identifier>,\<rumble speed>); ⚪ parameters \<rumble identifier> the identifier of a rumble motor \<rumble speed> percentage value of the rumble motor ranging 0 100 represented as an int 🔵 returns none block rumble block rumble does as it implies and blocks any rumble signals to the controller once this function is used, it remains active until such time as it is reset in the script or the script is unloaded example of usage gpc main { if(event press(xb1 a)) { // if a / cross is pressed block rumble(); // block rumble signals to the controller } } 🔴 syntax block rumble ( ); ⚪ parameters none reset rumble reset rumble returns control of the rumble motors to the console it also deactivates block rumble if it is active example of usage gpc main { if(event press(xb1 a)) { // if a / cross is pressed reset rumble(); // reset the rumble state } } 🔴 syntax reset rumble ( ); ⚪ parameters none