Difference between revisions of "LUA:SetMaxHP"

(Created page with "= LUA Functions: SetMaxHP() = Sets the max HP of the given spawn to the given amount ==== Syntax ==== SetMaxHP(param1, param2) ==== Parameters ==== ; Required - ''param1'' (S...")
 
 
Line 10: Line 10:
 
; Required - ''param1'' (Spawn), ''param2'' (sint32)
 
; Required - ''param1'' (Spawn), ''param2'' (sint32)
 
: ''param1'' is the spawn we want to modify
 
: ''param1'' is the spawn we want to modify
: '' param2'' is the value we want to set max HP to
+
: ''param2'' is the value we want to set max HP to
  
  

Latest revision as of 11:59, 12 September 2013

LUA Functions: SetMaxHP()

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


Syntax

SetMaxHP(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 HP to


Usage

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

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