Difference between revisions of "LUA:SetPower"
(Created page with "= LUA Functions: SetPower() = Sets the power of the given spawn ==== Syntax ==== SetPower(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''param2'' (si...") |
(No difference)
|
Latest revision as of 12:13, 12 September 2013
LUA Functions: SetPower()
Sets the power of the given spawn
Syntax
SetPower(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (sint32)
- param1 is the spawn we want to modify
- param2 is the value we want to set the power to
Usage
function hailed(NPC, Spawn)
SetPower(Spawn, 1234
end
When hailed the players power will be set to 1234