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

limited movement

Status
Not open for further replies.
Level 11
Joined
Mar 18, 2009
Messages
788
  • Unit - Move (Triggering unit) instantly to ((Center of (Playable map area)) offset by (0.00, 0.00))
The first one is X and the Seconds one is Y, to store it in an variable use this:

  • Set RealVariable(1) = (X of (Position of (Triggering unit)))
  • Set RealVariable(2) = (y of (Position of (Triggering unit)))
You will need both of them and then:
  • Unit - Move (Triggering unit) instantly to ((Center of (Playable map area)) offset by (RealVariable(1), RealVariable(2)))
This is just a rough part of the function.
 
Status
Not open for further replies.
Top