mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
Add files via upload
This commit is contained in:
parent
71a54fb193
commit
ebb5f97bfd
@ -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
|
||||
BIN
SPA - Spawning/SPA-400 - OnSpawnGroup/SPA-400 - OnSpawnGroup.miz
Normal file
BIN
SPA - Spawning/SPA-400 - OnSpawnGroup/SPA-400 - OnSpawnGroup.miz
Normal file
Binary file not shown.
10
SPA - Spawning/SPA-400 - OnSpawnGroup/pack.ps1
Normal file
10
SPA - Spawning/SPA-400 - OnSpawnGroup/pack.ps1
Normal 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 ..
|
||||
7
SPA - Spawning/SPA-400 - OnSpawnGroup/unpack.ps1
Normal file
7
SPA - Spawning/SPA-400 - OnSpawnGroup/unpack.ps1
Normal 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" *
|
||||
Loading…
x
Reference in New Issue
Block a user