Jump to content
Sign in to follow this  
Bnae

JIP connecting

Recommended Posts

[params, functionName, target, isPersistent, isCall] call BIS_fnc_MP;

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

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

 

I'm trying to figure how to execute functions only to the client who connects aka. JIP clients.

At the moment i'm not thinking about saving variables or anything like that, but just setting up variables and functions for JIP clients.

 

onPlayerConnected is propably for getting information to the server, not sure.

["core\spawn\fn_civspawn.sqf","BIS_fnc_execVM",true,true ] call BIS_fnc_MP;

This will execute the functions i wanted to the JIP client, but it will also exec it to all others aswell.

 

If you know a tutorial/ or similiar topic or you can explain it your self, please share it. Thanks!

Share this post


Link to post
Share on other sites
["core\spawn\fn_civspawn.sqf","BIS_fnc_execVM",true,true ] call BIS_fnc_MP;

Will be executed at code parse (now) and for every JIP later..

but

You do not  need to execVM a compiled function..

Share this post


Link to post
Share on other sites
["core\spawn\fn_civspawn.sqf","BIS_fnc_execVM",true,true ] call BIS_fnc_MP;

Will be executed at code parse (now) and for every JIP later..

but

You do not  need to execVM a compiled function..

 

 

Well the main problem was it was also executed on the clients ingame aswell.

So if i got this right, it needs to be call instead of exec

 

EDIT;

https://forums.bistudio.com/topic/188688-arma-3-code-standardization-effort-and-scripting-introduction-new-way/

 

This might help me since i just noticed it.

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  

×