diff --git a/CTLD.lua b/CTLD.lua index c9ebbef..31d42ed 100644 --- a/CTLD.lua +++ b/CTLD.lua @@ -13,10 +13,11 @@ Contributors: - Steggles - https://github.com/Bob7heBuilder - Version: 1.50 - 18/12/2015 - Internal Rewrite of AA System Creation + Version: 1.50 - 22/12/2015 - Internal Rewrite of AA System Creation - Added HAWK PCP to HAWK System to fix non firing - Added more launchers to HAWK to balance difficulty of building - Added ctld.spawnGroupAtPoint + - Added 326 KHz to ignore list ]] ctld = {} -- DONT REMOVE! @@ -4962,7 +4963,8 @@ function ctld.generateVHFrequencies() 920, 662, 866, 907, 309.5, 822, 515, 470, 342, 1182, 309.5, 720, 528, 337, 312.5, 830, 740, 309.5, 641, 312, 722, 682, 1050, - 1116, 935, 1000, 430, 577 + 1116, 935, 1000, 430, 577, + 326 -- Nevada } ctld.freeVHFFrequencies = {} diff --git a/Cargo Spawn Test.miz b/Cargo Spawn Test.miz index 896ff0d..f4864a8 100644 Binary files a/Cargo Spawn Test.miz and b/Cargo Spawn Test.miz differ diff --git a/Pickup-Dropoff-Demo.miz b/Pickup-Dropoff-Demo.miz index 2cd2057..0c88c43 100644 Binary files a/Pickup-Dropoff-Demo.miz and b/Pickup-Dropoff-Demo.miz differ diff --git a/README.md b/README.md index 59c1d2f..f01adcc 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ ctld.preLoadTransport("helicargo1", 10,true) #### Create Extractable Groups without Pickup Zone You can also make existing mission editor groups extractable by adding their group name to the ```ctld.extractableGroups``` list -#### Spawn Extractable Groups without Pickup Zone +#### Spawn Extractable Groups without Pickup Zone at a Trigger Zone You can also spawn extractable infantry groups at a specified trigger zone using the code below. The parameters are: @@ -247,6 +247,29 @@ ctld.spawnGroupAtTrigger("blue", {mg=1,at=2,aa=3,inf=4,mortar=5}, "spawnTrigger2 ``` +#### Spawn Extractable Groups without Pickup Zone at a Point +You spawn extractable infantry groups at a specified Vec3 point ```{x=1,y=2,z=3}``` using the code below. + +The parameters are: +* group side (red or blue) +* number of troops to spawn OR Group Description +* Vec3 point ```{x=1,y=2,z=3}``` +* the distance the troops should search for enemies on spawning in meters + +```lua +ctld.spawnGroupAtPoint("red", 10, {x=1,y=2,z=3}, 1000) +``` +or +```lua +ctld.spawnGroupAtPoint("blue", 5, {x=1,y=2,z=3}, 2000) +``` +or +```lua +ctld.spawnGroupAtPoint("blue", {mg=1,at=2,aa=3,inf=4,mortar=5}, {x=1,y=2,z=3}, 2000) +-- Spawns 1 machine gun, 2 anti tank, 3 anti air, 4 standard soldiers and 5 mortars + +``` + ### Activate / Deactivate Pickup Zone You can activate and deactive a pickup zone as shown below. When a zone is active, troops can be loaded from it as long as there are troops remaining and you are the same side as the pickup zone. diff --git a/test-fob.miz b/test-fob.miz index e501cf9..40d8b25 100644 Binary files a/test-fob.miz and b/test-fob.miz differ diff --git a/test-mission.miz b/test-mission.miz index b2dc881..40bb733 100644 Binary files a/test-mission.miz and b/test-mission.miz differ