question

shanice.c avatar image
0 Likes"
shanice.c asked shanice.c commented

Cannot see OnExit Trigger in properties

I would like to add a new trigger in OnExit. I have used onExit before in this queue, there are some settings inside and they also works, but the problem is that I cannot add new trigger if I cannot see it.

I'd like to ask if there's any way or use code to add a new trigger until I could update Flexsim. I have asked this question before in https://answers.flexsim.com/questions/108903/flexscript-exception-cannot-add-a-new-label.html
But due to the software is maintained by company, I couldn't update myself.

FlexSim 21.2.0
triggers
v1.mp4 (3.5 MiB)
· 3
5 |100000

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

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered shanice.c commented

By your description the trigger exists but is simply not shown in the properties window?

Have you tried to close and reopen the properties window ("View" -> "Properties" in top bar)? The trigger may also appear in the "Quicker Properties" you can open with a double click on the object.

1636012837310.png

If that doesn't work you should still be able to add code directly to the "exittrigger" node in the objects variables tree. You could add the function you want to a different trigger and copy the relevant code from it.

1636013045036.png


1636013045036.png (15.8 KiB)
1636012837310.png (20.1 KiB)
· 1
5 |100000

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