Add files via upload

This commit is contained in:
Thomas 2023-02-21 10:46:49 +01:00 committed by GitHub
parent 71a54fb193
commit ebb5f97bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,28 @@
-------------------------------------------------------------------------
-- SPA-400 - OnSpawnGroup
-------------------------------------------------------------------------
-- Documentation
--
-- SPAWN: https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/Core.Spawn.html##(SPAWN).OnSpawnGroup
--
-------------------------------------------------------------------------
-- Join the game master slot. The 2nd A-10 will start following the
-- 1st A-10 around.
-------------------------------------------------------------------------
-- Date: Feb 2023
-------------------------------------------------------------------------
local group1 = SPAWN:New("Aerial-1")
:OnSpawnGroup(
function(grp) -- this anonymous function will be called with the already spawned GROUP object for group one
local group2 = SPAWN:New("Aerial-2")
:OnSpawnGroup(
function(grp2) -- this anonymous function will be called with the already spawned GROUP object for group two
local task = grp2:TaskFollow(grp,{x=100,y=0,z=100}) -- create a DCS task structure
grp2:SetTask(task,1) -- set this as only task for group two
end
)
:Spawn() -- Spawn group two
end
)
:Spawn() -- Spawn group one

View File

@ -0,0 +1,10 @@
$dir = split-path -parent $MyInvocation.MyCommand.Definition
cd $dir
$file = Split-Path $dir -leaf
$dir
$file
cd "_unpacked"
. 7z a -r -y -tzip "..\$file.miz" *
cd ..

View File

@ -0,0 +1,7 @@
$dir = split-path -parent $MyInvocation.MyCommand.Definition
cd $dir
$file = Split-Path $dir -leaf
Remove-Item .\_unpacked -Force -Recurse
md "_unpacked"
cd "_unpacked"
. 7z x -r -y "..\$file.miz" *