Jump to content
Sign in to follow this  
Espectro (DayZ)

Multiplayer "Detected by" trigger

Recommended Posts

Hi there

I have a problem in my multiplayer mission - I have a trigger that should occur as soon as BLUFOR detects a vehicle... The problem is, that the trigger triggers on different times for the various players - how do I make it so that when one player spots the vehicle, the triggers triggers for all players on the same time?

Cheers!

Share this post


Link to post
Share on other sites

you can set a publicVariable after the trigger is activated on the client machine and publish that to the others then create a second trigger that activates when the variable is true :-)

so on the first trigger you set the on activation to something like

vehicleSpotted = true;

publicVariable "vehicleSpotted";

and the second trigger should be activated by

vehicleSpotted == true

remember to add the in a init.sqf or sqs

vehicleSpotted = false;

Edited by NeZz_DK

Share this post


Link to post
Share on other sites
you can set a publicVariable after the trigger is activated on the client machine and publish that to the others then create a second trigger that activates when the variable is true :-)

so on the first trigger you set the on activation to something like

vehicleSpotted = true;

publicVariable "vehicleSpotted";

and the second trigger should be activated by

vehicleSpotted == true

remember to add the in a init.sqf or sqs

vehicleSpotted = false;

Thx mate, will give it a go :)

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  

×