Working with arrays

krainert

Member
Reaction score
10
Greetings,

How can one pass an array (and not one of its elements) as a value?
EDIT: Also, how can one work with Records as values in the same way?
Also, how are "Allow Multiple" checked parameters used?

EDIT: I fear this might be impossible (which would be ludicrously absurd)... Please prove me wrong.

Thanks.
 

gex

New Member
Reaction score
6
it is impossible.

You can use Andromeda ;) and create a class which has an array as member. This class can be passed from / to functions.
 

krainert

Member
Reaction score
10
it is impossible.
You can use Andromeda ;) and create a class which has an array as member. This class can be passed from / to functions.
*ranting*

Damn, Andromeda looks NEAT. I guess I'll be looking into that as soon as I've finished scripting this thing.

Thanks.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
114
I cant seem to figure out how to do that. Even thought you talk about it in the language spe... section.

If you could show me a sample of 1 class that has in array of another custom class in it, and it getting initiated. I cant seem to get that to work...

Code:
 

Sensang

TH.net Regular
Reaction score
7
I might be mistaken, but aren't unit groups and player groups arrays?

But arrays in general? In the blizzard gui, I think not.
 

SerraAvenger

Cuz I can
Reaction score
234
You could easily "pass arrays" with a 2d array by passing the index of the first "coordinate".

Passing a record(==struct) as a value was once possible with pointers, but it doesn't seem possible anymore.
Structs are quite much useless atm anyway. They only serve as a bunch of variables.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top