Jump to content
Sign in to follow this  
schadler17

Script not working, no errors?

Recommended Posts

_unit addAction ["UAV Menu", "scripts\units\actions\UAV\init.sqf];

 

The mistake is in this line ;)

Share this post


Link to post
Share on other sites

I'm guessing it's a locality issue.

 

Which machine is the script being executed on? addAction only works on client machines.

 

might be able to get away with something like this though. Focusing on the first one, try one of these lines:

[_unit,['Commander Options','scripts\units\actions\commander\init.sqf']] remoteExec ['addAction',_unit,FALSE];
 
// or
 
[_unit,'Commander Options','scripts\units\actions\commander\init.sqf'] remoteExec ['addAction',_unit,FALSE];

Am away from my battlestation and don't know which syntax is correct, one of them should work though.

Share this post


Link to post
Share on other sites

The mistake is in this line ;)

Lol I noticed it right when I posted.

Is there a better way of making addAction command menus? Right now I've got each addAction removing the previous ones with removeAllActions, which isn't really bad the way I'm using it, but I'm sure there's another more efficient way of doing it.

Share this post


Link to post
Share on other sites

There is a addaction menu system right in this forum section, you could give that a try.

Share this post


Link to post
Share on other sites

Yes, that's the one.

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  

×