Difference between revisions of "LUA:ModifyHP"

(Created page with "= LUA Functions: ModifyHP() = Modifies the HP for the given spawn ==== Syntax ==== ModifyHP(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''param2'' (...")
 
(No difference)

Latest revision as of 20:59, 11 September 2013

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