SetLocalValue

From NPC for VCMP 0.4 Servers
Revision as of 05:57, 21 November 2022 by Habi (talk | contribs)
Jump to navigation Jump to search


Description:
Sets local value like health or armour of npc. Can be used before calling SendOnFootSyncDataLV which sends an onfoot player (npc) update packet to server


Parameters:

(field, value)

field : The field of npc's data to which the value is to be set
value : ( float ) The value to be set.


Return Values:

null, if the function fails, i.e. invalid field or type of value.
true, if the function succeed.




Related Functions

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