Difference between revisions of "LUA:SetSta"
(Created page with "= LUA Functions: SetSta() = Modifies the given spawns stamina by the given amount ==== Syntax ==== SetSta(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn)...") |
(No difference)
|
Latest revision as of 13:23, 12 September 2013
LUA Functions: SetSta()
Modifies the given spawns stamina by the given amount
Syntax
SetSta(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (sint32)
- param1 is the spawn we want to modify
- param2 is the amount we want to modify stamina by
Usage
function hailed(NPC, Spawn)
SetSta(Spawn, 20)
end
When hailed the players stamina will be increased by 20