From d57938188b5e564849963d76736aef86d9155ba0 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Jun 2013 14:47:16 -0700 Subject: [PATCH] Created Lua Entity (markdown) --- Lua-Entity.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Lua-Entity.md diff --git a/Lua-Entity.md b/Lua-Entity.md new file mode 100644 index 0000000..2d45477 --- /dev/null +++ b/Lua-Entity.md @@ -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() +``` \ No newline at end of file