Skip to content

Set flags on loaded#179

Open
danhunsaker wants to merge 2 commits into
ciribob:masterfrom
GremlinAviation:set-flag-on-loaded
Open

Set flags on loaded#179
danhunsaker wants to merge 2 commits into
ciribob:masterfrom
GremlinAviation:set-flag-on-loaded

Conversation

@danhunsaker

@danhunsaker danhunsaker commented Apr 22, 2026

Copy link
Copy Markdown

This allows loading scripts in order, using FLAG IS TRUE instead of TIME AFTER, which will allow each script to load immediately after the previous one is ready. I updated the README as well, but in general:

- Trigger: Script Initialization
  Action: Do Script File
  File: mist.lua

- Trigger: FLAG IS TRUE
  Flag: MiST_Loaded
  Action: Do Script File
  File: ctld-i18n.lua

- Trigger: FLAG IS TRUE
  Flag: CTLD-i18n_Loaded
  Action: Do Script File
  File: ctld.lua

And then if ctld.dontInitialize == true:

- Trigger: FLAG IS TRUE
  Flag: CTLD_Loaded
  Action: Do Script
  Script: ctld.initialize()

Though I did notice that ctld.dontInitialize isn't documented in the README, so that might need to be added as well, at some point.

I wasn't able to update the sample mission(s) because I don't have DCS working at the moment - I'm doing code for someone else's missions, and my laptop's drives are full, so it might be a while until I can access the mission editor.

Recommend `FLAG IS TRUE` instead of `TIME MORE`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant