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

variables

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
Arrays are a compound of variables of a joint type. You can access the single variables by indicating an index, GUI will automatically demand it when using the array. The size you may state in variable editor determines up to which index the array is initially filled with the initial value also shown in variable editor. Arrays start with index 0, so a size of x will cover 0, 1, 2, ..., x with the initial value.

When working with timers for example, those are objects that need to be created before you can use them. So Countdown - Timer - Start TimerArray[x] will only work if there is a valid timer behind this array index. That's why the standard initial value for timers in variable editor is "New Timer", so 0 to size of the array will acquire a fresh timer object.
 
Level 14
Joined
Jul 25, 2011
Messages
1,065
Here's a screen shot -> Temp.jpg

If you do this, it's already ok.
 
Status
Not open for further replies.
Top