Getting started
Download the latest yams script
Move the script into a folder that you can easily access while in the mission editor.
# EXAMPLE ONLY
mv $ENV:USERPROFILE\Downloads\yams-dcs.min.lua
"$ENV:USERPROFILE\Documents\Saved Games\DCS World\Scripts"
Open the mission editor and either create a new mission or create a new one. In the mission editor, click the triggers manager.
Create a new trigger
, giving it a condition
to wait for 1 second. Set the action
to DO SCRIPT FILE
and select the yams-dcs.lua
file from your filesystem
This concludes the process for loading yams, but now you want to build your own scripts around it.
Adding your first script
Now that yams is available for your use, your code can use the library in subsequent scripts.
Create a new trigger and use a FLAG ON condition
checking for flag 31337
, and use the DO SCRIPT
action this time.
Example
In that DO SCRIPT
block, paste in the following code:
When you start the mission now, you should see the following message in the upper RHS of screen.