PDA

View Full Version : Array condition thing question


Leinad
06-15-2006, 05:26 PM
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

IggyZ
06-15-2006, 06:54 PM
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.

Leinad
06-15-2006, 09:21 PM
Thanks! I got it to work.