No categories assigned

LUA:ModifyPower

Revision as of 21:02, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: ModifyPower() = Modifies the power of the given spawn ==== Syntax ==== ModifyPower(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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