Aller au contenu

Photo

Get AoE creator/effect from AoE object


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
SuperD-710

SuperD-710
  • Members
  • 130 messages
Is there any way to get the creator of an AoE from an AoE object? Or get the effect that created the AoE object in the first place (so I can grab the creator from it)?

I'm also not sure if the engine tagged a creator to the AoE object's variables, nor do I know which var set it uses. Any pointer would be greatly appreciated!

#2
anakin5

anakin5
  • Members
  • 258 messages
You can get the creator if you handle an event that is triggered by an AOE object like EVENT_TYPE_ENTER or EVENT_TYPE_AOE_HEARTBEAT. But the creator doesn't seems to be stored in the AOE object itself.



It depends where your AOE object comes from. How did you get this AOE object ? Is it OBJECT_SELF in the AOE event handler or something else ?


#3
SuperD-710

SuperD-710
  • Members
  • 130 messages
It's passed from another function, in which the object was grabbed from GetObjectInShape(). Dealing with some AoE combos. So I guess there's no way to check for creator for AoE objects... Will have to think of another approach.

#4
Rolenka

Rolenka
  • Members
  • 2 257 messages
The only get creator functions I know of are for effects or events, not objects.