Arrays as arguments of functions in ACS

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Jenkins
Posts: 3
Joined: Tue Mar 07, 2017 2:27 pm

Arrays as arguments of functions in ACS

Post by Jenkins »

Hi, I'm trying to make a function with an array as an argument in ACS

Code: Select all

function int Determinant (int matrix[][]) 
However when I compile it it returns this error message:

Code: Select all

Missing ')'
Is it possible to do this? If so how?
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Arrays as arguments of functions in ACS

Post by cocka »

No, I don't think so. You can't pass a complete array in acs scripts. You can't define a complete array inside an acs script either. AS FAR AS I KNOW.

But of course you can change the values of a map, world, global array from a function.
Locked

Return to “Editing (Archive)”