riouken 15 Posted September 1, 2010 I had some add action commands that were being added by the init.sqf. But they are not working since the new patch. We tested it on two different computers, the only way I could get an addAction command to work was by putting it in the objects init line. this was the code in the init.sqf It worked properly before the patch in both A2 and OA. It would add the action to the object. rc1 addAction ["200m Targets Up","reset1u.sqf",1]; Does anyone know if they changed something? Share this post Link to post Share on other sites
kylania 568 Posted September 1, 2010 Sure the unit in question was named rc1? Share this post Link to post Share on other sites
ben_s 11 Posted September 1, 2010 Hmm, Make sure the script name is correct and rc1 is the correct name. Share this post Link to post Share on other sites
riouken 15 Posted September 2, 2010 Yea I tried that, I copied and pasted the code right from the Init file and put it in the objects init field and it worked fine, pasted it back in the init.sqf and it will not work, I even tried naming the action id: myid1 = rc1 addAction ["200m Targets Up","reset1u.sqf",1]; still wont work. Share this post Link to post Share on other sites
ben_s 11 Posted September 2, 2010 if rc1 is the player, try use player addAction XXX Share this post Link to post Share on other sites
Murklor 10 Posted September 2, 2010 myid1 = rc1 addAction ["200m Targets Up","reset1u.sqf",[1]]; Work better? Share this post Link to post Share on other sites
ben_s 11 Posted September 2, 2010 Oh, the arguments must be in array format. Share this post Link to post Share on other sites
Muzzleflash 111 Posted September 2, 2010 Oh, the arguments must be in array format. Nope they don't have to be. You probably just used something like this: _params = _this select 3; _value = _params select 0; Instead of _value = _this select 3; If you want to pass multiple arguments an array can be used. Share this post Link to post Share on other sites
st_dux 26 Posted September 2, 2010 There's probably a problem elsewhere in your init.sqf, so the code isn't getting that far. Make sure you have showScriptErrors on. Share this post Link to post Share on other sites
ben_s 11 Posted September 2, 2010 Then it must be something inside your init.sqf causing the problem, as said. Share this post Link to post Share on other sites