Jump to content

Trigger on "MISSION START" does not work... why?


Recommended Posts

Posted

Hey everyone,

 

I am pretty new on working with triggers. Now I ran into the problem that on "mission start" a trigger does not work.

I want a "wav"-file to be played on mission start, but it just does not.

Is it because of the missing "condition"?

 

Just got no clue...

 

Anyone able to help?

 

Thanks!

mission start trigger.jpg

Posted

Hi,

 

I know that you got the solution to your issue, but couldn't help but notice that you don't put names to your triggers.  In other scripting languages you can add comments and name variables, to make it easier to understand if you came back many months later to fix or improve your code.

 

On DCS the only thing that you have to add a comment, is the name of the trigger ... you should really consider to use that field, it may seem like a lot of additional work, but it will actually help you in the long run. Your code will then look a bit like this:

 

CwCUgHk.jpg

  • Like 1

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted

As Rudel_chw said, is a good practice to give each trigger a title, and as a completion to his advice, when you use a flag you can put number in title: "Bandit in zone Fg2"

Is very useful when you have a lot of flags and you start to wonder: "did i used this number?" 

 

ONCE "Bandit in zone Fg2" > unit in zone "somebandit" > flag 2 true

 

Hope it helps and keep building 🙂

Posted
1 hour ago, dark_wood said:

...  and as a completion to his advice, when you use a flag you can put number in title: "Bandit in zone Fg2" ...

 

Yes, actually that is the purpose of the number I place at the beginning of the Trigger name, it's the number of the main Flag used on that trigger. So "20 Flaps" means that this particular trigger executes if Flag 20 = true (of course, it may also have other conditions to really execute) 👍

  • Like 1

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted
3 hours ago, dark_wood said:

As Rudel_chw said, is a good practice to give each trigger a title, and as a completion to his advice, when you use a flag you can put number in title: "Bandit in zone Fg2"

Is very useful when you have a lot of flags and you start to wonder: "did i used this number?" 

 

ONCE "Bandit in zone Fg2" > unit in zone "somebandit" > flag 2 true

 

Hope it helps and keep building 🙂

Thats a great advice! Cause just till now I clicked through all the triggers looking for the right one!

I am just learning all the triggers and they pepper the missions. It's so much fun using and creating scenarios.

THEY give the mission the flavor. Before that my missions were just too static...

Learning every day...

Thanks for all the help! Appreciate it!!!

3 hours ago, dark_wood said:

Hope it helps and keep building 🙂

Yeah! Just right now 😁

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...