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

[Trigger] Spell, How to Detect Movement for GUI / Triggers

Status
Not open for further replies.
Level 11
Joined
Mar 27, 2011
Messages
293

Good morning, afternoon or evening,

I hope that you carefully read this message and thank you for your patience and kindness. Well, I'm unsure of how to detect if a unit is moving or not by GUI.
I want to create a spell based on whether the unit is moving or not, an example of such is the spell Rupture. Also, if you can help, send me a link, or show the triggers that can contribute (I can return the favor with reputation points).

Thanks!
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Indexing and Order Checks would be better then a coordinates check.. Wouldn't it? I mean speed and lag-wise.

True, but it's not really very relevant. The actual looping takes more power than comparing 2 numbers(coordinates) instead of one(order).
Also, orders still have too many situations where they don't give an accurate result.
For instance, if you order a unit to attack another unit, then is the first unit moving? You can't know, since attack can apply to attackmoving, but also to standing and attacking.
 
Status
Not open for further replies.
Top