Hello everyone, I need some help. Is there or does it exist in Lua, function to delete nearest gobject like :GetObject() :ObjectDelete(). Thanks very much.
Hello everyone, I need some help. Is there or does it exist in Lua, function to delete nearest gobject like :GetObject() :ObjectDelete(). Thanks very much.
Last edited by stoneharry; 11-26-2010 at 10:56 AM.
http://www.arcemu.org/wiki/index.php...=Unit_Commands
:GetGameObjectNearestCoords(x, y, z, id) : Returns the object closest to the co-ordinates specified with the id designated.So::Despawn(delay, respawntimer) : Despawns the Unit with the delay. If the respawntimer is set to 0, the mob won't respawn.
Or for example:Code:pUnit:GetGameObjectNearestCoords(x,y,z,id):Despawn(1,0)
Please use the correct prefix next time.Code:pUnit:GetGameObjectNearestCoords(131,2352,5252,1515151):Despawn(1,0)