mia389 10 Posted January 2, 2011 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
demonized 16 Posted January 2, 2011 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
mia389 10 Posted January 2, 2011 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