Lua gobject delete function menu

User Tag List

Results 1 to 2 of 2
  1. #1
    kerovi's Avatar Member
    Reputation
    5
    Join Date
    Sep 2009
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua gobject delete function

    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.

    Lua gobject delete function
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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.
    :Despawn(delay, respawntimer) : Despawns the Unit with the delay. If the respawntimer is set to 0, the mob won't respawn.
    So:

    Code:
    pUnit:GetGameObjectNearestCoords(x,y,z,id):Despawn(1,0)
    Or for example:

    Code:
    pUnit:GetGameObjectNearestCoords(131,2352,5252,1515151):Despawn(1,0)
    Please use the correct prefix next time.

Similar Threads

  1. Is there a Lua random number function?
    By damdempsel in forum World of Warcraft General
    Replies: 4
    Last Post: 08-06-2010, 05:11 AM
  2. Not able to delete Gobjects
    By Dragola in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-06-2008, 04:39 PM
  3. Replies: 22
    Last Post: 05-29-2008, 03:52 PM
  4. [Question] Lua functions
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-10-2008, 07:39 PM
All times are GMT -5. The time now is 05:24 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search