SendInCarSyncDataEx

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search

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.