dr_hippo Posted October 31 Share Posted October 31 Dear, I am trying to setup the following scenario. I have a enemy convoy with different types of vehicles including truck that supposed to transport troops. When I attack that convoy it shoot come to a stop and the troops must be spawned near the truck. I know the trigger to activate the troops. I do not know how to make the spawn variable ( near the truck ) as it depends when and where I attack the convoy. Any ideas? Thanx Link to comment Share on other sites More sharing options...
DD_Friar Posted October 31 Share Posted October 31 Using the standard DCS tools are you having the troops spawn into a zone? If so you can link the zone to the truck so it moves with it.? Which trigger are you using to spawn the troops? Are you using the standard DCS troop embark/disembark options? Visit the Dangerdogz at www.dangerdogz.com. We are a group based on having fun (no command structure, no expectations of attendance, no formal skills required, that is not to say we can not get serious for special events, of which we have many). We play DCS and IL2 GBS. We have two groups one based in North America / Canada and one UK / Europe. Come check us out. Link to comment Share on other sites More sharing options...
dr_hippo Posted October 31 Author Share Posted October 31 Hi DD_Friar, Thanx for the response, I will give it a try later this day. I was trying to link the troops to the unit. That was not possible. I did not try it with a zone. For the trigger to spawn the troops there is something like: Group alive less then X %. ( do not know the exact syntax as I am not behind my PC ) Best regards Link to comment Share on other sites More sharing options...
dr_hippo Posted October 31 Author Share Posted October 31 Hmmmm, I kan create a triggerzone and link that trigger zone to the truck. Nevertheless I have no idea how to spawn the troops in that trigger zone?? Best regards Link to comment Share on other sites More sharing options...
sirrah Posted November 5 Share Posted November 5 On 10/31/2024 at 8:23 PM, dr_hippo said: Hmmmm, I kan create a triggerzone and link that trigger zone to the truck. Nevertheless I have no idea how to spawn the troops in that trigger zone?? Best regards You can't, at least not without scripting. What you describe in your OP can't be achieved with current mission editor tools. Perhaps it can be done with scripts , but someone else should chime in on this, as I have no scripting knowledge. System specs: i7-8700K @stock speed - GTX 1080TI @ stock speed - AsRock Extreme4 Z370 - 32GB DDR4 @3GHz- 500GB SSD - 2TB nvme - 650W PSU HP Reverb G1 v2 - Saitek Pro pedals - TM Warthog HOTAS - TM F/A-18 Grip - TM Cougar HOTAS (NN-Dan mod) & (throttle standalone mod) - VIRPIL VPC Rotor TCS Plus with ALPHA-L grip - Pointctrl & aux banks <-- must have for VR users!! - Andre's SimShaker Jetpad - Fully adjustable DIY playseat - VA+VAICOM - Realsimulator FSSB-R3 ~ That nuke might not have been the best of ideas, Sir... the enemy is furious ~ GUMMBAH Link to comment Share on other sites More sharing options...
Paganus Posted November 5 Share Posted November 5 This old Mbot script worked the last time i used it. DismountsScript.lua Link to comment Share on other sites More sharing options...
Javier Posted November 5 Share Posted November 5 With DML you can link the spawn zone to a unit. Link to comment Share on other sites More sharing options...
Darcaem Posted November 5 Share Posted November 5 I do something similar on my missions to simulate an "assault squad" being drop by a helo. But I do use MOOSE You need to have a late activation group (in my case named "BLUE ground infantry assault"), and with this code I spawn the troops, in my case with an F10 radio menu command, but you could use the "do script" command on your trigger to call the spawn method BLUE_GROUND_INFANTRY_ASSAULT = SPAWN:New("BLUE ground infantry assault") :InitLimit(100, 100) :OnSpawnGroup( function(SpawnGroup) /** DELETE this: in this example my spawned group is send to attack the enemy position closest to the drop zone local ag=ARMYGROUP:New(SpawnGroup.GroupName) ag:SwitchROE(ENUMS.ROE.OpenFire) ag:SwitchAlarmstate(2) local targetPos = findClosestGroundRed(SpawnGroup:GetCoord()):GetPositionVec3() local coordinate = COORDINATE:New(targetPos.x, targetPos.y, targetPos.z) ag:AddMission(AUFTRAG:NewCAPTUREZONE(OPSZONE:New(ZONE_RADIUS:New("Target", coordinate:GetVec2(), 50, true), coalition.side.RED), coalition.side.BLUE, 25, 0, "On Road")) FLAG_LOCK_MARKER = false */ end ) function spawnBlueGroundAssault(group) local coordinate = group:GetCoord() BLUE_GROUND_INFANTRY_ASSAULT:SpawnFromPointVec3(COORDINATE:New(coordinate.x + 10, coordinate.y, coordinate.z + 10)) -- experiment with this value, +10 works for me end you would need to call "spawnBlueGroundAssault(group)" on your script, where "group" is the group unit you want them to spawn close to. So if your truck's group is named "TRUCK" you would need to call spawnBlueGroundAssault(GROUP:FindByName("TRUCK")) If you haven't used MOOSE, you can download it here https://github.com/FlightControl-Master/MOOSE/releases/tag/2.9.9, you have to load it on ME with a MISSION START trigger > Do script file Link to comment Share on other sites More sharing options...
Recommended Posts