• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Timer trigger with relative timing (delta time)

Messages
65
Country
germany
Hi folks,

maybe I'm making a fool of me now, but I simply can't find a way to fire a trigger e.g. 2 seconds after a certain event happened.

Example 1: A series of dialogs with 2 seconds between the end of the last dialog and the start of the new one.

Example 2: A property trigger fires a dialog action. After the dialog has finished another trigger should fire.

I tried activating a timer trigger with StartTime = 0 and StopTime = 2, but that won't work.

Tia,
Robin <><
 
Dialog Actions will stay open until the wav file ends. You can stack a series of Dialog actions to play back to back without any timers. Just put them in the order you want them to play. If you want a two second gap between them, just put 2 seconds of silence at the beginning or end of your wav file.

To change the order of any action, open the trigger for the actions. Look at the References box. Use the Move Up and Move Down buttons to put each action in the order you want them to play.

Gunner
 
Last edited:
Gunner_CAF gave the simplest thing to do, although equally you could have a single dialog with a 2 second silent gap in it...

to be fairly mainstream with timers you should also note the timer with Activated=False won't start until an object activation action sets it to "True".

So if you want to trigger two dialogs starting 5 seconds apart you would:

(A) * create dialog1, dialog2 and
* a timertrigger with StopTime=5 and Activated=False and Actions=dialog2, plus
* an Object Activation Action with NewObjectState=True and the ObjectReferenceList=your TimerTrigger.

(B) when you want the sequence to play:

(1) call ObjectActivationAction (which will start timer)
(2) call dialog1 (i.e. play first dialog)
... 5 seconds elapses from (1)
(3) dialog2 will be triggered by the TimerTrigger

Maybe the only subtlety here was you can't trigger something from the *end* of a dialog, only trigger something at the same time as you *start* it, so you have to take the duration of the wav into account.

B21
 
Back
Top