Publish reworked missions with global variables

This commit is contained in:
FlightControl
2017-03-18 14:42:03 +01:00
parent 553ceb462e
commit cd69b8a879
195 changed files with 294 additions and 293 deletions

View File

@@ -21,8 +21,8 @@
do
-- Declare SPAWN objects
local Spawn_KA_50 = SPAWN:New("KA-50"):InitLimit( 1, 10 )
local Spawn_A_10C = SPAWN:New("A-10C"):InitLimit( 1, 10 )
Spawn_KA_50 = SPAWN:New("KA-50"):InitLimit( 1, 10 )
Spawn_A_10C = SPAWN:New("A-10C"):InitLimit( 1, 10 )
-- Choose repeat functionality

View File

@@ -21,10 +21,10 @@
do
-- Declare SPAWN objects
local Spawn_KA_50 = SPAWN:New("KA-50"):InitLimit( 2, 10 )
local Spawn_MI_8MTV2 = SPAWN:New("MI-8MTV2"):InitLimit( 2, 10 )
local Spawn_C_101EB = SPAWN:New("C-101EB"):InitLimit( 2, 10 )
local Spawn_A_10C = SPAWN:New("A-10C"):InitLimit( 2, 10 )
Spawn_KA_50 = SPAWN:New("KA-50"):InitLimit( 2, 10 )
Spawn_MI_8MTV2 = SPAWN:New("MI-8MTV2"):InitLimit( 2, 10 )
Spawn_C_101EB = SPAWN:New("C-101EB"):InitLimit( 2, 10 )
Spawn_A_10C = SPAWN:New("A-10C"):InitLimit( 2, 10 )
-- Choose repeat functionality

View File

@@ -15,22 +15,22 @@
-- Create the SPAWN object looking for the group (template) "Plane".
local SpawnPlane = SPAWN:New( "Plane" )
SpawnPlane = SPAWN:New( "Plane" )
-- Set the spawn mode to UnControlled.
SpawnPlane:InitUnControlled( true )
-- Spawn the UnControlled Group
local UnControlledPlane = SpawnPlane:Spawn()
UnControlledPlane = SpawnPlane:Spawn()
-- Set the spawn mode back to Controlled.
SpawnPlane:InitUnControlled( false )
local ControlledPlane = SpawnPlane:Spawn()
ControlledPlane = SpawnPlane:Spawn()
-- Now, let's create a menu option at a player slot plane...
-- We can only create the menu option if the player has joined the slot ...
local PlayerPlane = CLIENT:FindByName( "PlayerPlane", "Select Menu item to activate UnControlled plane" )
PlayerPlane = CLIENT:FindByName( "PlayerPlane", "Select Menu item to activate UnControlled plane" )
PlayerPlane:Alive(
function( Client, SpawnPlane )

View File

@@ -6,13 +6,13 @@ local Iterations = 100
local Iteration = 1
-- The PolygonGroup route defines zone 1
local ZonePolygonGroup = GROUP:FindByName( "ZonePolygon" )
ZonePolygonGroup = GROUP:FindByName( "ZonePolygon" )
-- The ZoneUnit defines zone 4.
local ZoneUnit = UNIT:FindByName( "ZoneUnit" )
ZoneUnit = UNIT:FindByName( "ZoneUnit" )
-- The ZoneGroup defines zone 5
local ZoneGroup = GROUP:FindByName( "ZoneGroup" )
ZoneGroup = GROUP:FindByName( "ZoneGroup" )
-- This is the array that models the different zones types.
-- The selection of the zones is done by taking into account the probability of the zone.