Jump to content
Sign in to follow this  
jordanbache97

Trigger activation on time

Recommended Posts

Hi guys

I am doing a mission where you have to ambush a convoy at a certain time.

What can I put in the Init line of the trigger so it activates on an in game time.

So if we started the game at 2 o'clock in the morning I would like the hostile convoy to start moving at 2:55.

Thanks guys in advance.

Share this post


Link to post
Share on other sites
Hi guys

I am doing a mission where you have to ambush a convoy at a certain time.

What can I put in the Init line of the trigger so it activates on an in game time.

So if we started the game at 2 o'clock in the morning I would like the hostile convoy to start moving at 2:55.

Thanks guys in advance.

is "countdown" in trigger NOT what you want to use? I usually just place a trigger, sync it to convoy leader waypoint, use countdown once side is present and bam. So, say its 2 am, your group spawns in, make trigger hit once your side is presence in game, use countdown for 55 minutes or 3300 seconds and once countdown is up, min/mod/max all 3300 seconds, once down, convoy moves. sounds way more easy than scripting a trigger. BUT look into createtrigger. You can script that into your init.sqf. more work in my opinion.

Share this post


Link to post
Share on other sites
is "countdown" in trigger NOT what you want to use? I usually just place a trigger, sync it to convoy leader waypoint, use countdown once side is present and bam. So, say its 2 am, your group spawns in, make trigger hit once your side is presence in game, use countdown for 55 minutes or 3300 seconds and once countdown is up, min/mod/max all 3300 seconds, once down, convoy moves. sounds way more easy than scripting a trigger. BUT look into createtrigger. You can script that into your init.sqf. more work in my opinion.

So much complication when you can precisely set the hour.

Share this post


Link to post
Share on other sites
So much complication when you can precisely set the hour.

Yep simple line in the trigger condition:

daytime == 2.92 //<< ~.92 hours, gets repeatable .91666666

Share this post


Link to post
Share on other sites
Yep simple line in the trigger condition:

daytime == 2.92 //<< ~.92 hours, gets repeatable .91666666

Hey Prof.... I know. I wish there was a "reference" for "how to do stuff" for Arma 3 editor. I just learn by doing. BUT that code by JShock would work too. lol :)

this is also a really cool thing to know. I will use triggers this way now too.

Edited by JAndrews1

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  

×