Array condition thing question

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