Field: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<big>To be used with [[SetLocalValue]]. I_xx means integer, F_yy means float and V_ means vector.  
<big>To be used with [[SetLocalValue]]. I_xx means integer, F_yy means float and V_ means vector.  
For example GetLocalValue(F_CAR_HEALTH) returns the health of the car in which npc is currently sitting.
For example <source inline>GetLocalValue(F_CAR_HEALTH)</source> returns the health of the car in which npc is currently sitting.
<source lang="lua">
<source lang="lua">
I_KEYS  
I_KEYS  
Line 11: Line 11:
I_CURWEP
I_CURWEP
I_CURWEP_AMMO  
I_CURWEP_AMMO  
I_ACTION (since 1.7 beta2)
V_ONFOOT_SPEED (since v1.6 beta3)
V_ONFOOT_SPEED (since v1.6 beta3)
V_AIMPOS (since v1.6 beta3)
V_AIMPOS (since v1.6 beta3)
Line 21: Line 22:
F_CAR_TURRETX
F_CAR_TURRETX
F_CAR_TURRETY
F_CAR_TURRETY
B_CROUCHING (since v1.8 beta 4)
B_RELOADING (since v1.8 beta 4)
B_AIM_UPDATE (since v1.8 beta 4)  //true for firing
</source></big>
</source></big>

Latest revision as of 18:58, 23 October 2024

To be used with SetLocalValue. I_xx means integer, F_yy means float and V_ means vector. For example GetLocalValue(F_CAR_HEALTH) returns the health of the car in which npc is currently sitting.

I_KEYS 
F_POSX
F_POSY
F_POSZ
F_ANGLE
I_HEALTH
I_ARMOUR
I_CURWEP
I_CURWEP_AMMO 
I_ACTION (since 1.7 beta2)
V_ONFOOT_SPEED (since v1.6 beta3)
V_AIMPOS (since v1.6 beta3)
V_AIMDIR (since v1.6 beta3)
V_POS
Q_CAR_ROTATION
V_CAR_SPEED
I_CAR_DAMAGE
F_CAR_HEALTH
F_CAR_TURRETX
F_CAR_TURRETY
B_CROUCHING (since v1.8 beta 4)
B_RELOADING (since v1.8 beta 4)
B_AIM_UPDATE (since v1.8 beta 4)  //true for firing