SET CHAR CAN BE KNOCKED OFF BIKE

From GTAMods Wiki
Jump to navigation Jump to search
SET_CHAR_CAN_BE_KNOCKED_OFF_BIKE
Number of parameters: 2
Parameter #TypeDescription
1.pointerchar handle
2.integerset (0=on / 1=off)
Return value:
TypeDescription
None

This function can prevent a character from being ejected from a motorbike through collisions. Unlike most functions, setting it to 0 means the character can be knocked off the bike and 1 means the player will not be knocked off. This function seems to affected by SET_CHAR_PROOFS. After this function is turned on, the function will stay on if the character is collision-proof. Turning this function off will not work until the collision-proof is turned off.