- Add Airboss[CN] translated from MOOSE.

- Restructed file system: added 'Script' folder and 'Docs' folder.
- Set some mission options in MIZ.
This commit is contained in:
2024-12-10 12:14:31 +08:00
parent d270c216f7
commit c4456199a5
8 changed files with 141117 additions and 1 deletions
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
script_path = lfs.writedir() .. "Missions\\Scripts\\Buta\\DCS_TrainingMap_Caucasus\\Scripts\\"
if lfs then
dofile(script_path..'Mission_Init.lua')
env.info("Script Loader: LFS available, using relative script load path: " .. script_path)
else
env.info("Script Loader: LFS not available, using default script load path: " .. script_path)
end
+16
View File
@@ -0,0 +1,16 @@
local script_list =
{
-- Load order must be correct
-- "mist.lua", --mist_4_5_122
"Moose_.lua",
"spawnListener.lua",
"Airboss[CN].lua",
}
local function load_scripts(path, list)
for index, value in ipairs(list) do
dofile(path .. value)
end
end
load_scripts(script_path, script_list)
+123253
View File
File diff suppressed because it is too large Load Diff
+19
View File
@@ -0,0 +1,19 @@
SpawnListener = {}
do
local ev = {}
function ev:onEvent(event)
trigger.action.outText('event: '..event.id,10)
if event.id == 15 then
local msg = 'initiator: '..event.initiator:getName()
trigger.action.outText(msg,10)
end
end
world.addEventHandler(ev)
end