Jump to content

Recommended Posts

Posted

ok, I got something like 62 units that may activate or may not at the start of a mission... but, using this trigger:

 

ONCE -> TIME MORE (10); RANDOM (1); FLAG IS TRUE (1) -> ACTIVATE UNIT (...)

 

it apperars to activate units ALWAYS. Every unit has an holding time of 23h and 10 days....

 

(NB: flag 1 is my unit to takeoff)

 

Where I am wrong?

 

thanks in advance.

 

 

PS

I know other trigger selection, but I cannot make 6 trigger for every unit... :(

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

You have to be careful when combining the ONCE trigger with the RANDOM condition. The ONCE trigger means, it will check the conditions each second until they become true and the fire once. For the RANDOM condition, it will roll the virtual dice each second and keep doing so until it becomes true. I see you set a 1% chance of it becoming true. By my experience, when using <5% chances, it usually takes around 5-10 minutes for the condition to become true and will fire the trigger. Another example, if you set the value to 50%, it will roll a 50/50 dice each second, so after some seconds the trigger will most likely fire.

 

In order to prevent the randomization condition to keep repeating until it eventually becomes true, you have to run it separately. Create a Mission Start trigger, add your RANDOM value and let it set a flag. This way RANDOM will only happen once, and you get a flag that is true or false depending on how your randomization went. Then go on to us the flag in the condition field of the trigger you wanted to randomize in the first place.

Posted

MANY thanks!

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

  • Recently Browsing   0 members

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