SendInCarSyncDataEx

From NPC for VCMP 0.4 Servers
Revision as of 19:42, 9 January 2023 by Habi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

( [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.