Jump to content
tsdobbi

Trigger spawned units "inept", no other way to describe it.

Recommended Posts

So, my buddies and I usually just play warlords missions we set up against the AI.  However, don't like the fact the AI doesn't use air.  So I decided to add some triggers that will spawn enemy air in timed intervals.  i.e. 10 minutes after the active air group bites the dust it will spawn another helicopter/plane.

 

No problems there.  The problem is, well, the vehicles that spawn....."suck" to say the least.  I just set up a test mission where I have some blufor tanks in a field and just spectate the spawned planes/helo's engaging them.

 

Attack Helicopters will seem to use nothing but their rockets (and boy are they inaccurate).  No guns, no ATGM's.  Vanilla or mod helo's.

Vanilla planes seem "okay".  I've seen them  use their guns and ATGM's.  Mod planes like a CUP SU-25 literally just fly around and do nothing.

 

Basically I have a repeatable trigger for plane and a trigger for helicopter that will essentially spawn a new one 10 minutes after it identifies the group as having no units left.

 

Below is my trigger activation.

 

if ({ alive _x } count units heloGrp1 < 1) then {deleteGroup heloGrp1};   //i delete the group here, I didn't know if spawning a group of the same name would cause issues, so I delete it before respawning it.


heloGrp1 = [getPos helSpawn, EAST, ["O_Heli_Attack_02_dynamicLoadout_F"],[],[],[],[],[], 0] call BIS_fnc_spawnGroup;   //spawn the group in

//waypoint logic   
wp1 = heloGrp1 addWaypoint [position sd1, 0];  
wp1 setWaypointType "SAD"; 
wp1 setWaypointBehaviour "COMBAT"; 
wp1 setWaypointCombatMode "RED";

 

 

I assume I may need to get a little more meticulous with the group creation.  Plane trigger is the same, just has different variable names and obviously spawns a plane.

 

I've tested it spawning in ground units like a tank and they seem to engage and fight just fine.

 

If I just place a helicopter on the map for example, give it a seek and destroy objective.  It will wreck the whole group of NATO vehicles.  So clearly something is happening with the vehicles I am spawning in, where their AI is wonky.

Share this post


Link to post
Share on other sites

- don't spawn too close, (something like 700 m distance)

- if still no joy, add reveal command (set to > 1.5)

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

×