No categories assigned
LUA:ModifyHP
- Last edited 12 years ago by I need to Update My Profile
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