plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

Mr_LiamT avatar image
Mr_LiamT asked SFSimsDev commented

[BUG] TimelineAction doesn't work

I can't get the TimelineAction to work. This is the code I would expect to work:

The TimelineAction gets triggered by a proximity trigger. Then, after 1 second, it should flash the screen (FadeToColorAction).

        <SimMission.ProximityTrigger InstanceId="{5e98e4e9-ea46-49eb-8aa0-50d2ed383488}">
            <OnEnterActions>
                <ObjectReference InstanceId="{b01a0814-c985-4a41-a1f6-9c20cfe8ab3a}" />
            </OnEnterActions>
            <Areas>
                <ObjectReference id="Area_Test" InstanceId="{06ce1ebb-f1a6-4473-a995-9c4cf4792761}"/>
            </Areas>
        </SimMission.ProximityTrigger>
        <SimMission.RectangleArea id="Area_Test" InstanceId="{06ce1ebb-f1a6-4473-a995-9c4cf4792761}">
            <AttachedWorldPosition>
                <AltitudeIsAGL>True</AltitudeIsAGL>
                <IsOnGround>True</IsOnGround>
                <WorldPosition>N41° 8' 37.02",W8° 37' 40.49",+0.000</WorldPosition>
                <Orientation>0.000,0.000,90.000</Orientation>
            </AttachedWorldPosition>
        </SimMission.RectangleArea>
        <SimMission.TimelineAction InstanceId="{b01a0814-c985-4a41-a1f6-9c20cfe8ab3a}">
            <TimedActions InstanceId="{4388d554-faa5-42be-b93a-951ccb367af1}">
                <TimedAction InstanceId="{99e692ba-b140-4eb5-a466-0f7c745af4d8}">
                    <Time>1.000</Time>
                    <Actions>
                        <ObjectReference InstanceId="{25b7b973-5fe0-4295-8bc1-72d65bb9b249}" id="Flash black"/>
                    </Actions>
                </TimedAction>
            </TimedActions>
        </SimMission.TimelineAction>
        <SimMission.FadeToColorAction InstanceId="{25b7b973-5fe0-4295-8bc1-72d65bb9b249}" id="Flash black">
            <FadeToColor>False</FadeToColor>
        </SimMission.FadeToColorAction>

It just doesn't fire the trigger and appears to be not functional at all.

I'm using version 1.27.17.0

bugmission
3 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

SFSimsDev avatar image SFSimsDev commented ·

@FlyingRaccoon can we have an example of TimelineAction in the documentation (and a fix of course)? My assumption was that unlike TimerTriggers you could use a TimelineAction to say execute X action at 11:30:00 UTC etc. Is that correct?

0 Likes 0 ·
Mr_LiamT avatar image Mr_LiamT SFSimsDev commented ·
I think the TimelineAction starts counting when you fire the action, so it's not really related to world time
1 Like 1 ·
SFSimsDev avatar image SFSimsDev Mr_LiamT commented ·
Ok Thanks. I'll raise a new request to see if there's anything that can do this. We had/have it in the old BGL schedules.
0 Likes 0 ·

1 Answer

·
BuffyGC avatar image
BuffyGC answered Mr_LiamT commented

HI @Mr_LiamT,

Is the trigger not fired, or is the EnterAction not executed?
Did you try to add another action (DialogAction) to check whether the trigger was fired or not?

With your ProxyTrigger you have to hit the point very precisely. I also made the experience, if an axis (length or width) in the ProximityTrigger is 0, the EnterAction is not called. Therefore I have set this to at least 10m.

Try to add the following to the RectangleArea and check if you fly into it by turning on the WorldObjects in DevMode. The box of the area will then turn blue.

<Length>2000.000</Length>
<Width>2000.000</Width>
<Height>10000.000</Height>

In your use-case, you can also define an additional 1 second TimerTrigger that is activated via an ObjectActivationAction when the area is reached, and the TrimerTrigger then calls the FadeToColorAction.

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Mr_LiamT avatar image Mr_LiamT commented ·

I tested a bit more, and the problem is definitely the TimelineAction. For now I will use your suggestion with TimerTriggers, but the TimelineAction should be really handy for more elaborate sequences.

2 Likes 2 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.