Module Spawn
-Functional -- Spawn dynamically new Groups in your missions.
+Functional -- Spawn dynamically new GROUPs in your missions.
@@ -809,12 +809,6 @@ and any spaces before and after the resulting name are removed.
Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.
+-
@@ -2569,9 +2566,6 @@ when nothing was spawned.
-
-
Overwrite unit names by default with group name.
--
@@ -2586,6 +2580,9 @@ when nothing was spawned.
+
+
By default, no InitLimit
+-
@@ -2621,7 +2618,7 @@ when nothing was spawned.
- - + #number SPAWN.SpawnMaxGroups @@ -2638,7 +2635,7 @@ when nothing was spawned.
- - + #number SPAWN.SpawnMaxUnitsAlive @@ -2956,7 +2953,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 )
-
- #boolean
+
SPAWN.SpawnUnControlled
@@ -2980,7 +2977,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 )
-
Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.
+When the first Spawn executes, all the Groups need to be made visible before start.
- - - - -SPAWN.uncontrolled - - -
- - - -
- Through creating a copy of an existing Template Static as defined in the Mission Editor (ME). -
- Through the provision of the type name of the Static. -
- Spawned Statics will have the name _StaticName#nnn_, where StaticName is the name of the Template Static,
@@ -239,23 +239,20 @@ Newly spawned Statics will get the following naming st
SPAWNSTATIC construction methods
-Create a new SPAWNSTATIC object with the SPAWNSTATIC.NewFromStatic() or the SPAWNSTATIC.NewFromType() methods:
+Create a new SPAWNSTATIC object with the SPAWNSTATIC.NewFromStatic():
- SPAWNSTATIC.NewFromStatic(): Creates a new SPAWNSTATIC object given a name that is used as the base of the naming of each spawned Static. -
- SPAWNSTATIC.NewFromType(): Creates a new SPAWNSTATIC object given a type name and a name to be given when spawned.
SPAWNSTATIC Spawn methods
+Spawn methods
Groups can be spawned at different times and methods:
-
-
- SPAWNSTATIC.SpawnInZone(): Spawn a new group in a Zone. -
- SPAWNSTATIC.SpawnFromVec3(): Spawn a new group from a Vec3 coordinate. (The group will can be spawned at a point in the air). -
- SPAWNSTATIC.SpawnFromVec2(): Spawn a new group from a Vec2 coordinate. (The group will be spawned at land height ). -
- SPAWNSTATIC.SpawnFromStatic(): Spawn a new group from a structure, taking the position of a Static. -
- SPAWNSTATIC.SpawnFromUnit(): Spawn a new group taking the position of a Unit. +
- SPAWNSTATIC.SpawnFromPointVec2(): Spawn a new group from a POINT_VEC2 coordinate. + (The group will be spawned at land height ). +
- SPAWNSTATIC.SpawnFromZone(): Spawn a new group in a Zone.
Spawn - Functional -- Spawn dynamically new Groups in your missions.
+Functional -- Spawn dynamically new GROUPs in your missions.
SpawnStatic - Functional -- Spawn dynamically new Statics in your missions.
+Core -- Spawn dynamically new STATICs in your missions.
diff --git a/docs/Presentations/SPAWNSTATIC.pptx b/docs/Presentations/SPAWNSTATIC.pptx new file mode 100644 index 000000000..53e14f0dc Binary files /dev/null and b/docs/Presentations/SPAWNSTATIC.pptx differ diff --git a/docs/Presentations/SPAWNSTATIC/Dia1.JPG b/docs/Presentations/SPAWNSTATIC/Dia1.JPG new file mode 100644 index 000000000..46fcee945 Binary files /dev/null and b/docs/Presentations/SPAWNSTATIC/Dia1.JPG differ
-
-
Module SpawnStatic
-Functional -- Spawn dynamically new Statics in your missions.
+Core -- Spawn dynamically new STATICs in your missions.
-
+ +
SPAWNSTATIC spawns static structures in your missions dynamically. See below the SPAWNSTATIC class documentation.
Demo Missions
-SPAWNSTATIC Demo Missions source code
+SPAWNSTATIC Demo Missions source code
-SPAWNSTATIC Demo Missions, only for beta testers
+SPAWNSTATIC Demo Missions, only for beta testers
ALL Demo Missions pack of the last release
@@ -219,17 +223,13 @@The SPAWNSTATIC class allows to spawn dynamically new Statics.
+Through creating a copy of an existing static object template as defined in the Mission Editor (ME), +SPAWNSTATIC can retireve the properties of the defined static object template (like type, category etc), and "copy" +these properties to create a new static object and place it at the desired coordinate.
-There are two modes how SPAWNSTATIC can spawn:
- --
-
Spawned Statics get the same name as the name of the Template Static,
-or gets the given name when a Static Type is used.
-Newly spawned Statics will get the following naming structure at run-time:
New spawned Statics get the same name as the name of the template Static,
+or gets the given name when a new name is provided at the Spawn method.
+By default, spawned Statics will follow a naming convention at run-time: