mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-05 15:22:37 +00:00
Created Lua Entity (markdown)
parent
bfcd39f775
commit
d57938188b
30
Lua-Entity.md
Normal file
30
Lua-Entity.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Lua entities are classes exported to Lua that represent the Entity object from EQEmu.
|
||||||
|
|
||||||
|
### Properties
|
||||||
|
```
|
||||||
|
entity.null - Returns true if this object is null
|
||||||
|
entity.valid - Returns true if this object is not null
|
||||||
|
```
|
||||||
|
|
||||||
|
### Member Functions
|
||||||
|
```
|
||||||
|
Entity() - Creates a null entity
|
||||||
|
bool IsClient()
|
||||||
|
bool IsNPC()
|
||||||
|
bool IsMob()
|
||||||
|
bool IsMerc()
|
||||||
|
bool IsCorpse()
|
||||||
|
bool IsPlayerCorpse()
|
||||||
|
bool IsNPCCorpse()
|
||||||
|
bool IsObject()
|
||||||
|
bool IsDoor()
|
||||||
|
bool IsTrap()
|
||||||
|
bool IsBeacon()
|
||||||
|
int GetID()
|
||||||
|
Lua_Client CastToClient()
|
||||||
|
Lua_NPC CastToNPC()
|
||||||
|
Lua_Mob CastToMob()
|
||||||
|
Lua_Corpse CastToCorpse()
|
||||||
|
Lua_Object CastToObject()
|
||||||
|
Lua_Door CastToDoor()
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user