• 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.

[Solved] Who trigger neutral unit spell cast?

Status
Not open for further replies.
I need help with next problem.
I have hero (player RED for example) and I cast spell that is located
in NEUTRAL BUILDING. Now triggering unit returns this neutral passive
unit, I need to know how to detect HERO who clicked on spell.

Stupid me.

add each unit that enters in the significant event to a unit group (pre created variable), if a unit belongs to x group you can detect it A via periodic time event, B special event, or C implement a damage detection system, like the one i implemented on my map, it allows you to detect a bunch of events and create a lot of spells just by using GUI in your map.

PD: you can also make all the units have an inventory with no slots that allows them to pick power ups (tomes of attributes will cause fatal errors btw), but it allows you to do certain spells quicker and better. Also avoid using the doom ability since it disables inventory in all units.
 
Status
Not open for further replies.
Top