View Full Version : Help with GO Select

12-31-2013, 07:38 PM
Hello :)
i have a question.
before the last major change, i using GetObjectGlobally for select a GO with guid and entry. Now? How can I?

I have seen GetWorldObject function, but i don't know how using it.
in this mode?:

local gameobject = player:GetWorldObject(GetGUIDLow(GetObjectGUID(gui d, entry)))
but return the var gameobject nil :|
the guid for GetWorldObject function is Low or High?

Whiroph ^^

12-31-2013, 11:11 PM
the guid is guid (combination of entry, highguid and lowguid)
You can get the guid by using GetGUID() or you can make it from (entry and) guid with global methods.
For example if you know the entry and low guid (DB guid) of a gameobject, you can do:
local gameobject = player:GetWorldObject(GetObjectGUID(lowguid, entry))

01-01-2014, 12:21 AM
Thx for the reply
I have used: local gameobject = player:GetWorldObject(GetObjectGUID(guid, entry))
but the gameobject var is nil :|
GetObjectGUID(guid, entry) return the correct guid value (i've tested). but at moment to call GetWorldObject return nil.
the player are in same map of GOs
any idea? ^^
very thx