• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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