Difference between revisions of "SET CHAR CAN BE KNOCKED OFF BIKE"

From GTAMods Wiki
Jump to navigation Jump to search
(created article)
 
 
Line 4: Line 4:
 
|p1d=char handle
 
|p1d=char handle
 
|p2t=integer
 
|p2t=integer
|p2d=set (0=off / 1=on)
+
|p2d=set (0=on / 1=off)
 
|r=0
 
|r=0
 
}}
 
}}
This function can prevent a character from being ejected from a motorbike through collisions.
+
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.

Latest revision as of 08:52, 1 September 2009

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.