ExitVehicleEx: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.7 and will not work in previous versions. </poem> {{Welcome|desc=Initiates a player's entry into a vehicle with extended options| params=<source>(ofsd,style, byte1, byte2)</source> <poem>ofsd : This is true/false. If true, npcclient will send an onfootsyncdata after 650 ms. If OnFootSyncData is not send, npc exists, but will be seen again sitting inside vehicl...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> | <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> | ||
This function was added in v1.7 and will not work in previous versions. | This function was added in v1.7 beta2 and will not work in previous versions. | ||
</poem> | </poem> | ||
{{Welcome|desc=Initiates | {{Welcome|desc=Initiates npc's exit from vehicle with extended options| | ||
params=<source>(ofsd,style, byte1, byte2)</source> | params=<source>(ofsd,style, byte1, byte2)</source> | ||
<poem>ofsd : This is true/false. If true, npcclient will send an onfootsyncdata after 650 ms. | <poem>ofsd : This is true/false. If true, npcclient will send an onfootsyncdata after 650 ms. It is necessary otherwise, npc exists, but will be seen again sitting inside vehicle. If false, then you have to set timer to call SendOfSyncDataLV manually. | ||
style : The style of exiting. | style : The style of exiting. | ||
byte1 : Additional parameter 1 | byte1 : Additional parameter 1 | ||
byte2 : Additional parameter 2| | byte2 : Additional parameter 2</poem>| | ||
example=<source lang="lua"> | example=<source lang="lua"> | ||
ExitVehicleEx( true, 1, 0, 0 ); | ExitVehicleEx( true, 1, 0, 0 ); | ||
Line 17: | Line 17: | ||
3 27 03 fall from bike upside down | 3 27 03 fall from bike upside down | ||
3 27 00 fall from bike while jumping* | 3 27 00 fall from bike while jumping* | ||
*/ | */</source>| | ||
retvals=true on success, false on failure( npc not in vehicle ).| | retvals=true on success, false on failure( npc not in vehicle ).| | ||
relfuncs= | relfuncs= |
Latest revision as of 15:33, 9 October 2024
This function was added in v1.7 beta2 and will not work in previous versions.
Description:
Initiates npc's exit from vehicle with extended options
Parameters:
(ofsd,style, byte1, byte2)
ofsd : This is true/false. If true, npcclient will send an onfootsyncdata after 650 ms. It is necessary otherwise, npc exists, but will be seen again sitting inside vehicle. If false, then you have to set timer to call SendOfSyncDataLV manually.
style : The style of exiting.
byte1 : Additional parameter 1
byte2 : Additional parameter 2
Return Values:
true on success, false on failure( npc not in vehicle ).
Example
ExitVehicleEx( true, 1, 0, 0 ); /* The following values might be useful (style, byte1, byte2) 1 00 00 normal 2 00 00 jump from vehicle 3 27 01 fall from bike hitting wall 3 27 03 fall from bike upside down 3 27 00 fall from bike while jumping* */
Related Functions
The following functions may be helpful as they relate to this function in one way or another.