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