Jump to content
Sign in to follow this  
RS30002

Delete trigger

Recommended Posts

Hi all....

 

Need a trigger covering a spawn area... deleting two soldiers of "ACM_NA_soldier_Crewman" from this area.

 

But here's the sauce......there's a tank spawned in this area and this exact class is it's crew....so i need to delete just the two that are on foot.

 

Background: after searching for a decent African army that isn't equipped with T-100 tanks, has a decent vintage modernized look to it and that's configured for the spawn AI module i found the African mod based on Global Mobilization.

 

All is well, except the tank (ACM_NA_T55AM2B) comes with  2 outside gunners' seats on each side of the turret.......the spawn module spawns the tank and two pistol armed crew which don't get in their spots on the tank, resulting in the tank slowly moving, at a running pace to where it's needed.

 

I think it should be possible,  have a general idea, repeating trigger, if unit is this class in this list AND on not driver type tank then delete unit

 

....which should result in only the boarded tank crew remaining and the tank speeding it up to the area of operation.

 

Many thanks for any insights! 🙂

Share this post


Link to post
Share on other sites

Why not spawn an empty tank then add the two crewmen you want?

Share this post


Link to post
Share on other sites
54 minutes ago, Harzach said:

Why not spawn an empty tank then add the two crewmen you want?

 

Yikes, just noticed this is in the wrong section....

 

Spawning is done through the Sector AI spawn module. It's convenient to make a more or less equal ground skirmish over which i just fly, drop bombs, return, land, rearm, do it all over and generally have fun.

 

Want to remove the crewmen which spawn extra. The tank is already fully crewed. But it comes with a troop carrying capacity (pic below for clarification), which is useless to me because the module spawns lightly armed crewmen...cant even pretend this is some sort of combined armor/infantry setup lol

 

also can't set it up in the module under the "max units per group" tab, it always spawns with two extra, doesnt matter if i set the limit at 3 (ie tank crew)

 

t55.jpg

 

Share this post


Link to post
Share on other sites
1 hour ago, Rok Stuhne said:

it always spawns with two extra

 

OK, I remember a recent topic about configuring groups for Sector Control and this being an issue. I don't believe a solution was found.

 

One problem is that units in those outside positions aren't returned in assignedCargo.

 

It might be simpler to just delete all crew then add the crew you want.

 

Share this post


Link to post
Share on other sites
1 hour ago, Harzach said:

 

OK, I remember a recent topic about configuring groups for Sector Control and this being an issue. I don't believe a solution was found.

 

One problem is that units in those outside positions aren't returned in assignedCargo.

 

It might be simpler to just delete all crew then add the crew you want.

 

 

I don't know how to write that in the expression field....

 

Out of curiosity, why wouldn't my idea work? 

 

Repeatable trigger over the module and code to delete every soldier in that trigger that is on foot. I just don't know how to write that either. 😔

(they don't spawn on the tank, but next to it...so technically they are on foot...idk....the pic i shared was me putting them in the editor to actually see how many go on the tank)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×