GetLocalValue

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


Description:
Gets current field values of npc as a player.


Parameters:

(field)

field : The field of npc's data to which the value is to be get.


Return Values:

The value as integer or float.



Example The following code will fetch npc's current health.

local health = GetLocalValue(I_HEALTH );
if( health < 5 )
SendChat("Water. water please...");

Related Functions

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