Eluna add GetWorldObject by guid to map methods. Closes #64 requires use of guid

This commit is contained in:
Rochet2
2014-06-08 21:32:29 +03:00
committed by Foereaper
parent eab5c0693b
commit 37a0161f29
3 changed files with 39 additions and 1 deletions

View File

@@ -1129,6 +1129,7 @@ ElunaRegister<Map> MapMethods[] =
{ "GetMapId", &LuaMap::GetMapId }, // :GetMapId() - Returns the map's ID UNDOCUMENTED
{ "GetAreaId", &LuaMap::GetAreaId }, // :GetAreaId(x, y, z) - Returns the map's area ID based on coords UNDOCUMENTED
{ "GetHeight", &LuaMap::GetHeight }, // :GetHeight(x, y[, phasemask]) - Returns ground Z coordinate. UNDOCUMENTED
{ "GetWorldObject", &LuaMap::GetWorldObject }, // :GetWorldObject(guid) - Returns a worldobject (player, creature, gameobject..) from the map by it's guid
// Booleans
#ifndef CLASSIC