Aller au contenu

Photo

[Solved] Actived Ability Code - Finding what item is used in the code


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
KigenBarzhad

KigenBarzhad
  • Members
  • 132 messages
I'm currently coding an activated ability. Rather than make a ton of abilities in ABI_* , I wanted to consolidate them/make the diversions in the script.

My question is: Is there a way to check the object (and thus the resource or the tag) of the item that sent this event?

GetEventCreator(ev); only returns the player (default_player)

Edit: not even a second later after posting I solved it.
GetEventObject(ev,2); returns the item used to activate it.

Modifié par KigenBarzhad, 22 mars 2010 - 09:57 .