No categories assigned

LUA:ModifyHP

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

LUA Functions: ModifyHP()

Modifies the HP for the given spawn


Syntax

ModifyHP(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn who's HP we want to check
param2 is the amount we want to modify the HP by


Usage

function hailed(NPC, Spawn)
    ModifyHP(Spawn, -10)
end

When hailed the players HP will be reduced by 10