Jump to content
Sign in to follow this  
mia389

Array help

Recommended Posts

I decided to ask my question here since its in a script. I have an array from the dac scripts that looks like this

_campObjInit   = [[],[],[],[],[],[],[]];

I need to put an addaction in it.

I did get an event handler to work with this

_campObjInit = [[],[],[],[],["_x addEventHandler [""killed"",{nul=_this execVM ""runFunction.sqf"";}];"],[],[]];

how would I get an addaction in the line above instead of eventhandler?

I tried this but it didnt work. This array thing is killing me

_campObjInit   = [[],[],[],[],[_x addAction ["collect","newbase.sqf"];],[],[]];

Share this post


Link to post
Share on other sites

it seems you are missing a ] after newbase.sqf"]

_campObjInit   = [[],[],[],[],[_x addAction ["collect","newbase.sqf"]];],[],[]];

Share this post


Link to post
Share on other sites

Didnt work error says this

Error in expression <[_x addAction ["collect","newbase.sqf"]];],[],[]];

};

case 11:

{

_campBasic >

Error position: <;],[],[]];

};

case 11:

{

_campBasic >

Error Missing ]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×