Home   Help Search Login Register  

Author Topic: Hold fire and retreat  (Read 790 times)

0 Members and 1 Guest are viewing this topic.

CrashnBurn

  • Guest
Hold fire and retreat
« on: 24 Nov 2002, 00:54:32 »
I have several groups being checked by a looping script that counts how many are alive, and when it reaches a certain number a "switch" trigger fires unlocking waypoints for them to retreat with "never fire" set. Problem is, they continue to target and fire anyways. I've checked and rechecked everything and I'm sure it's all setup correctly. So whats the problem ? Why won't they stop firing and retreat ?

Offline Sentinel

  • Contributing Member
  • **
  • World is tough and I'm tougher!!
Re:Hold fire and retreat
« Reply #1 on: 24 Nov 2002, 19:08:06 »
I think you shouldn't use waypoints. Scripts are much much better.

CrashnBurn

  • Guest
Re:Hold fire and retreat
« Reply #2 on: 25 Nov 2002, 04:52:53 »
I got the same result using move commands without waypoints. I see what's happening but don't know a way around it. Soldiers who were already given a commandtarget by the AI leader before the retreat trigger fired, stayed to engage while those who did not have a commandtarget before the trigger fired, retreated like they should. To make things worse, as long as the AI leader detects targets, he won't retreat at all no matter what I try. There must be a way to give them all chicken legs at the same time ?

micropilot

  • Guest
Re:Hold fire and retreat
« Reply #3 on: 25 Nov 2002, 18:50:15 »
I was able to get this scenario to work properly, but had to use the allowfleeing command.  

It seems that by setting the allowfleeing to 1 when the group had been reduced the proper ammount they would disengage and beat-feet outa the firefight.

I set this up on the desert island, placed a platoon of soviets, set their allowfleeing to 0, and had them move into position.  At the opposite end of the island I placed a platoon of West soldiers, set their allowfleeing to 0, named the group plt1 and gave them a HOLD waypoint near the soviet waypoint, and a move way point some distance away from the battfield.  

I created a trigger of type switch and put in the condition field count units plt1 < 8 and in the activation field "_x allowfleeing 1" foreach units plt1. Sync this with the Move WP.