Jump to content
Sign in to follow this  
riouken

Did "addAction" get changed in the last patch

Recommended Posts

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

Hmm, Make sure the script name is correct and rc1 is the correct name.

Share this post


Link to post
Share on other sites

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

if rc1 is the player, try use

player addAction XXX

Share this post


Link to post
Share on other sites

myid1 = rc1 addAction ["200m Targets Up","reset1u.sqf",[1]];

Work better?

Share this post


Link to post
Share on other sites

Oh, the arguments must be in array format.

Share this post


Link to post
Share on other sites
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

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

Then it must be something inside your init.sqf causing the problem, as said.

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  

×