OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 22 Jul 2004, 19:39:53

Title: Fire at particular truck and forget the rest
Post by: Gooner861 on 22 Jul 2004, 19:39:53
Ok picture a convoy of four trucks, i have two enemy AT guys positioned to the side. The trucks stops at a checkpoint, now i want one AT guy to take out the first truck and the 2nd to take out the last one.

Now ive dun the neccesary doFire commands but sumtimes the AT guys just fire at the one truck or at another truck i dnt to be hit.

How can i make it so that the one AT guy only concentrates on that one particular truck and forgets the rest?

Cheers

Gooner
Title: Re:Fire at particular truck and forget the rest
Post by: macguba on 22 Jul 2004, 19:42:59
Make the other trucks setCaptive true.

Try playing with disableAI "target".
Title: Re:Fire at particular truck and forget the rest
Post by: Dubieman on 22 Jul 2004, 21:28:58
Setcaptive the trucks you don't want to be hit and setcaptive false them after.

As for targeting one or the other? Err remove one AT guys ammo and when one target is gone, give him back his ammo? :P