diff --git a/Load_Scripts.lua b/Load_Scripts.lua new file mode 100644 index 0000000..a0453dd --- /dev/null +++ b/Load_Scripts.lua @@ -0,0 +1,9 @@ +script_path = lfs.writedir() .. "Missions\\Scripts\\Buta\\DCS_TrainingMap_Caucasus\\" + +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 \ No newline at end of file diff --git a/Mission_Init.lua b/Mission_Init.lua new file mode 100644 index 0000000..d3e89de --- /dev/null +++ b/Mission_Init.lua @@ -0,0 +1,14 @@ +local script_list = +{ + -- Load order must be correct + -- "mist.lua", --mist_4_5_122 + "spawnListener.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) diff --git a/ScriptTest.miz b/ScriptTest.miz new file mode 100644 index 0000000..82210f7 Binary files /dev/null and b/ScriptTest.miz differ diff --git a/note.md b/note.md index 5fe4c45..0a43fdc 100644 --- a/note.md +++ b/note.md @@ -1,5 +1,8 @@ -- 就我目前的需求,就是复杂的防空压制,完全不知道如何多机配合 --狐宝 -- IADS可以整一个 --芙兰 +- 就我目前的需求,就是复杂的防空压制,完全不知道如何多机配合 --狐宝 +- IADS可以整一个 --芙兰 -- 塞点CAS --狐宝 \ No newline at end of file +- 塞点CAS --狐宝 + +- 空中加油运油赏金内容TODO +- 编队带飞长机内容(简柏成) \ No newline at end of file diff --git a/spawnListener.lua b/spawnListener.lua new file mode 100644 index 0000000..4e06151 --- /dev/null +++ b/spawnListener.lua @@ -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 \ No newline at end of file diff --git a/高加索训练.xmind b/高加索训练.xmind index f5b3c63..1cf7793 100644 Binary files a/高加索训练.xmind and b/高加索训练.xmind differ