• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Which unit is Triggering unit when using "Dismount"

Status
Not open for further replies.
Level 16
Joined
Mar 25, 2016
Messages
1,327
To be honest I doubt that you can get them with a simple function call such as GetTriggerUnit(). Maybe you can just do it by yourself, by triggering the ability (creating 2 new units when cast).
There are of course problems such as buffs/unit groups. I don't know how the game handles these situations with the normal ability, but I think it's not possible to carry over buffs from one unit to another.
You can try using some workarounds: Keeping track of the "age" of all hippos/archers. When the ability is cast you pick all hippos/archers with a very low age within a small region. Not sure if this works though. Could be buggy.
 
Level 7
Joined
Jan 23, 2011
Messages
351
Welp, they are newly entered units. I will save the levels of the Archer and the Hyppogryh on ability cast, then i will add the average level to the rider, the globals variable SHOULD maintain their values, i'll test what happen if you cast at the same time

edit: Enter regions triggers as soon as ability effect ends
 
Last edited:
Status
Not open for further replies.
Top