Jump to content
draoth

How to make action visible for everyone if script is called on server?

Recommended Posts

Hey everyone, 

I've got a script that is running on server only, but i need to create a action that passes arguments from that script.

When i try it online only the server host gets the action. So how can i create an action that passes arguments on a server script that everybody can use?

Code:

_veh addaction ["Stop here","Stop.sqf",[_veh,_pass,_AI],0,false,false,"",""];

 

Share this post


Link to post
Share on other sites

Use remote execution

 

https://community.bistudio.com/wiki/Arma_3_Remote_Execution

https://community.bistudio.com/wiki/remoteExec


Have to work as below, but I never use with addActions additional arrays, so you have to test

 

[_veh, ["Stop here", "Stop.sqf", [_veh, _pass, _AI], 0, false, false, "", ""]] remoteExec ["addAction", 0, false];

 

 

  • Like 1

Share this post


Link to post
Share on other sites
10 minutes ago, Fr3eMan said:

Use remote execution

 

https://community.bistudio.com/wiki/Arma_3_Remote_Execution

https://community.bistudio.com/wiki/remoteExec


Have to work as below, but I never use with addActions additional arrays, so you have to test

 

[_veh, ["Stop here", "Stop.sqf", [_veh, _pass, _AI], 0, false, false, "", ""]] remoteExec ["addAction", 0, false];

 

 

Thanks, ill try it! 

Have a good day!

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

×