Use the on gossip hello hook for the gameobject and when that triggers, despawn the gameobject and apply the aura on the clicker. (how does wsg flag work?)
still didn't work
Code:local objectid = 179786 RegisterPlayerGossipEvent(menu_id, event, function) GameObject:Despawn(0) Aura:GetAuraId(23333)
you can examine how i handle the flag GO's here ---> https://github.com/BlackWolfsDen/Elu...#L1054to#L1129
i use RegisterGameObjectEvent 1 to interact_with/spawn/despawn the flags.
this should help you with spawn/de-spawn.
Code:local flagid = 100000 -- GO id 100000 for ally 100001 for horde function Tagflag(event, player, go) do stuff end RegisterGameObjectGossipEvent(flag_id, 1, Tagflag) RegisterGameObjectGossipEvent(flag_id+1, 1, Tagflag)
that still didnt work
There are currently 1 users browsing this thread. (0 members and 1 guests)