SendInCarSyncData: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<poem style="border: 2px solid #d6d2c5; background-color: # | <poem style="border: 2px solid #d6d2c5; background-color: #ADD8E6; padding: 1em;"> | ||
This function has been added in v1.6. | This function has been added in [[V1_6_alpha_release_notes|v1.6]]. | ||
</poem> | </poem> | ||
{{Welcome| | {{Welcome| |
Latest revision as of 00:37, 8 January 2023
This function has been added in v1.6.
Description:
This will send an in-car sync packet to server which is filled by the following parameters.
Parameters:
( keys, health, armour, weapon, ammo, carhealth, cardamage, x, y, z, rotx, roty, rotz, rotw, speedx, speedy, speedz, turretx, turrety )
keys : The npc's Game Keys to hold.
health : The npc's health.( in subsequent packets, it can be decreased but do not increase )
armour : The npc's armour.
weapon : The weapon of npc.
ammo : The weapon's ammo.
carhealth : Health of the vehicle in which npc is driver. (0-1000.0)
damage : The vehicle's damage.
x : The x co-ordinate of the vehicle.
y : The y co-ordinate of the vehicle.
z : The z co-ordinate of the vehicle.
rotx : The x co-ordinate of the quaternion rotation of the vehicle.
roty : The y co-ordinate of the quaternion rotation of the vehicle.
rotz : The z co-ordinate of the quaternion rotation of the vehicle.
rotw : The w co-ordinate of the quaternion rotation of the vehicle.
speedx : The vehicle's speed x co-ordinate.
speedy : The vehicle's speed y co-ordinate.
speedz : The vehicle's speed z co-ordinate.
turretx : The float value turretx
turrety : The float value turrety
Return Values:
This function does not return any specific values.
Important Note:
This was added in v1.6
Example
Related Functions
The following functions may be helpful as they relate to this function in one way or another.