SetLocalValue: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
<poem>::field : The [[field]] of npc's data to which the value is to be set
<poem>::field : The [[field]] of npc's data to which the value is to be set
::value : ( float ) The value to be set.</poem>|
::value : ( float ) The value to be set.</poem>|
retvals=<poem>null, if the function fails, i.e. invalid field or type of value.
true, if the function succeed.</poem>|
}}
}}

Revision as of 21:03, 18 November 2022


Description:
Sets local value like health or armour of npc without sending 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.