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

Array condition thing question

Status
Not open for further replies.
Level 3
Joined
Aug 18, 2004
Messages
60
I have just resently learned how to use arrays and I need help with a trigger for a arrowkey movement system.
The event is every .01 seconds of game time. The condition is if the players variable "up" (boolean array) is true, the action is to issue an order for there "current unit" (unit array) to move to "location" (regin array).
Is there a way that I can acomplish for 12 players with one trigger?
Thanx
 
Level 5
Joined
Nov 21, 2005
Messages
100
You really don't want to use 0.01 second triggers. When I did it, I got away with about 0.8 second repeats.

For every integer 1 to 12, if UP(boolean)[integerA] = true, order HERO(unit)[integerA] to move to it's own position, offset by 300 toward's it's facing.

Or just look at my map, whatever.
 
Status
Not open for further replies.
Top