Jump to content

Recommended Posts

In my mission, when a Bluefor player enters an area, the trigger causes Independent AI forces to respawn. Altogether 16 Independent soldiers. The problem is that when another Bluefor member also enters the area, another 16 Independent AI enters the game. What should I do to be born only 16 enemies for the entire Bluefor team?

 

Trigger Config

Tipe: None

Activation: BLUEFOR

Activation Type: Present

Repeatable: DISABLED

Server Only: DISABLED

 

My code: (How to perform this only 1 time to the side (Team). But it can be activated by any player on the team.)

if (!isDedicated) then {null = [this] execVM "Gatilhos\Defesa\Alpha\Ind\Squad1.sqf";}; 

Share this post


Link to post
Share on other sites

Enable the "Server Only" option.

  • Like 1

Share this post


Link to post
Share on other sites

And If mission is intended for dedicated server use, also remove the if-then condition to run the script.  Just execute the script.

 

By enabling 'Server Only' option, and letting the (!isDedicated) condition remain, the script would never get executed on a dedicated server.  But would work fine for SP and MP hosted, the host's trigger would execute the script when activated.

 

  • Like 1
  • Thanks 1

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  

×