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

How can I trigger unit to use custom abilities?

Status
Not open for further replies.
Level 5
Joined
Dec 18, 2007
Messages
205
You must look under actions and order the unit to use the ability your created spell is based off.
E.g. you used Storm Bolt for your ability, then you must order your unit to 'point order' a unit with 'human - storm bolt'
greetings
 
Level 10
Joined
Mar 16, 2009
Messages
354
on your trgger that adds the spawning unit add the action
Action - set variable - (unit variable no array) = to last created unit.

then create a trigger

Event - A unit comes within 500 range of (unit variable that was set above)
Condition - Triggering unit is owned by (an enemy player like player 1 maybe)
Action - Unit Issue order targeting a unit - Issue (unit variable that was set above) to cast your custom spell on point of triggering unit
 
Status
Not open for further replies.
Top