• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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