No categories assigned

LUA:SetMaxPower

Revision as of 11:58, 12 September 2013 by Jabantiz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetMaxPower()

Sets the max power of the given spawn to the given amount


Syntax

SetMaxPower(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn we want to modify
param2 is the value we want to set max power to


Usage

function spawn(Spawn)
    SetMaxPower(Spawn, 1000)
end

When this NPC spawns its max power will be set to 1000