B.A.D.

how to make clients know what happened on the server?

12 posts in this topic

hey there!

i have a script running through bis_fnc_mp in the mission.sqm.by activating the init of that script the colour correction changes and theres dust and wind and a dynamic blur.

so when this script is executed its running on all connected clients(yay) but if someone is joining later on or relogging the applied effects arent existing for him / her...

how can i let the clients check if that script has been running ans sync the athmospheric effects with the other players so everyone has got the dust,wind,colour correction and blur?

 

help much apprechiated guys

Edited by B.A.D.

Share this post


Link to post
Share on other sites

4th argument for fnc_mp is persistence. Set it to true.

Share this post


Link to post
Share on other sites
Advertisement

@Mezo

is it really that easy?

can you give me an example?

atm its in an objects init of the mission.sqm like that

init = this addaction["whattodo","myscript_init.sqf"];[[player,"variabletocall"]] call bis_fnc_mp;

this is activating the script on all clients fine.

should i go for remotexec instead?

Edited by B.A.D.

Share this post


Link to post
Share on other sites

init = "["",MyPublicVariable, player,true, true] call BIS_fnc_MP;";

tried it in this format but still,i can log off and back on and the effects are gone

edit:

 

well i made a copy of the script and chopped it down to only the effects.is there any way you can get clients to check if a publicvariable was set through the script activation and run the "effects only" script if true?

Edited by B.A.D.

Share this post


Link to post
Share on other sites

thank you,yeah i read that but if i put that into the init of an object together with the addaction the addaction wont apper when youre at the object

Share this post


Link to post
Share on other sites

Bis_fnc_mp as been disabled by for Exile.

Use RE.

Share this post


Link to post
Share on other sites

are future clients automatically updated when joining using remoteexec?

Share this post


Link to post
Share on other sites

If you enable JIP, yes.

Share this post


Link to post
Share on other sites

so if they join after the effects where applied they will have themshowing?

the variable is set to targets=0 so i think it is enabled for it

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.