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

Casting spell in rect

Status
Not open for further replies.
Level 7
Joined
Apr 30, 2007
Messages
322
Events
A Unit Begin casting Ability
Conditions
Ability being cast equal to stay/camp
Casting unit equal to Variable Player[1]
Ability is casted in RECT001 (How can i make this ?)
Events
Move unit instantly to RECT002
 
Level 7
Joined
Jul 19, 2008
Messages
58
Enter region trigger

  • Events
  • Unit - A unit enters RECT_001 <gen>
  • Conditions
  • (Put whatever you want in here)
  • Actions
  • Set IN_RECT = True
Leave Trigger

  • Events
  • Unit - A unit leaves RECT_001 <gen>
  • Conditions
  • (Put whatever you want in here)
  • Actions
  • Set IN_RECT = False
When casting...
  • Events
  • Unit - A unit Begins casting an ability
  • Conditions
  • IN_RECT Equal to True
  • (Ability being cast) Equal to camp
  • Actions
  • Unit - Move (Triggering unit) instantly to (Center of RECT_002 <gen>)

you can also make arrays for it for all the players, but theres the simple version of it
 
Status
Not open for further replies.
Top