JASS arrays

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Well, i'm pretty good with arrays, but I can't figure out how you stink'n pass a array to and from functions. It's not done at all in Blizzard.j, so I am starting to think you can't. Anyone here know how?
 
L

Laika.

Guest
You cannot pass the entire array to a function, or set a whole array equal to something. You must specify a particular index.

Integer array Test
...

Random_Function takes Integer
...

Random_Function (Test[]) X
Random_Function (Test[1]) O

Integer ... =Test[] X
Integer ... =Test[1] O
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Yea, I want the whole array... Dam, I was thinki'n that you couldn't...
 
H

Heptameron

Guest
You can make a similar effect if you play around with handle variables and that kinda stuff.

Don't listen to me, just rambling. :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top