Jump to content
Sign in to follow this  
satexas69

Trigger variables & JIP

Recommended Posts

I have a trigger on my mission that announces the start of a wave when the players get close to the enemy city at the beginning of my mission.

It's simple, it's a trigger that's set to "once" and fires off a text message.

Easy. Common.

But if a player joins up late in the mission, say 30 minutes after that trigger's already fired - it fires again.

How can I set some type of variable (like a flag - "trigger1firedoff=true" ) so that way when JIP's join, they don't get that/those types of late triggers?

Share this post


Link to post
Share on other sites

Try this script. I use it for late arrivals to run "weapons_respawn" script because otherwise they spawn without weapons.

There are options for specifying wether to run or not run the script or command for JIP.

JIP script

Share this post


Link to post
Share on other sites

@Wittmann - In your init.sqf you ahve the following condition: (local server or !local player)

I feel like a noob for asking, but when , if ever, is !local player true?

Share this post


Link to post
Share on other sites

But a dedicated server never has a player.

Edit: Never mind. I now understand it is to make sure player unit has been created from JIP.

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  

×