SendInCarSyncDataEx: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #ADD8E6; padding: 1em;"> This function has been added in v1.6. </poem> {{Welcome| desc=T...")
 
No edit summary
 
Line 1: Line 1:
<poem style="border: 2px solid #d6d2c5; background-color: #ADD8E6; padding: 1em;">
<poem style="border: 2px solid #d6d2c5; background-color: #ADD8E6; padding: 1em;">
This function has been added in [[V1_6_alpha_release_notes|v1.6]].
This function has been added in [[V1_6_alpha_release_notes|v1.6]] and will not work in previous versions.
</poem>
</poem>
{{Welcome|
{{Welcome|

Latest revision as of 13:16, 13 March 2024

This function has been added in v1.6 and will not work in previous versions.


Description:
This will send an in-car sync packet to server which is filled by the following parameters.


Parameters:

( [integer]keys, [integer]health, [integer]armour, [integer]weapon, [integer]ammo, [float|integer]carhealth, [integer]damage, [Vector]pos, [Quaternion]rotation, [Vector]speed, [float|integer]turretx, [float|integer]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.
pos : The position of the vehicle.
rot : The Quaternion rotation of the vehicle.
speed : The speed of the vehicle.
turretx : The value of horizontal turret.
turrety : The value of vertical turret.


Return Values:
This function does not return any specific values.

Important Note:
This was added in v1.6


Related Functions

The following functions may be helpful as they relate to this function in one way or another.