GameObject Methods

From ArcEmu-Wiki
Revision as of 19:37, 14 June 2013 by Zdroid9770 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main Page        LuaArcEmu Website     ArcEmu Forum     Bug Tracker

Get (Return) Methods

:GetEntry() Returns the entry ID
:GetHP() Returns the actual HP
:GetMaxHP() Returns the maximum HP
:GetName() Get the name
:GetObjectType() Returns 'GameObject'
:GetSpawnLocation() Get the Location of a spawned unit

Uncategorized Methods

:Activate() Activates/Deactivate a go, f.ex. opens a door
:Damage( damage, guid, spellid ) Damages the GO if it's a destructible building, guid is the damaging Unit's GUID, spellid is the damaging spell.
:Rebuild() Rebuilds the GO, if it's a destructible building. Restores it's hp to max, and restores it's displayid to normal.
:RemoveFromWorld() Removes the Game Object from the world.
Personal tools