Difference between revisions of "LUA:ModifyPower"
(Created page with "= LUA Functions: ModifyPower() = Modifies the power of the given spawn ==== Syntax ==== ModifyPower(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''pa...") |
(No difference)
|
Latest revision as of 21:02, 11 September 2013
LUA Functions: ModifyPower()
Modifies the power of the given spawn
Syntax
ModifyPower(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (sint32)
- param1 is the spawn we want to check
- param2 is the player we want to check
Usage
function hailed(NPC, Spawn)
ModifyPower(Spawn, -10)
end
When hailed the players power will be reduced by 10