No categories assigned

LUA:SetPower

Revision as of 12:13, 12 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetPower() = Sets the power of the given spawn ==== Syntax ==== SetPower(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''param2'' (si...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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