OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jim666 on 29 Mar 2005, 13:48:15

Title: AI to not fire/target
Post by: Jim666 on 29 Mar 2005, 13:48:15
Ive got a chopper right in a cutscene, and ive got a few AA soldiers around. i dont want the AA soldiers to target the chopper or fire at the chopper. As the chopper is soppose to crash anyway in a certain way.

How would i do this?

I know theres a do target and do fire command, i just want the opposite so the Ai doesnt not fire or target.
Title: Re:AI to not fire/target
Post by: greg147 on 29 Mar 2005, 13:49:17
just put

Code: [Select]
this setcaptive true
in its init box, and the AI will not fire on it  ;)
Title: Re:AI to not fire/target
Post by: nominesine on 29 Mar 2005, 13:50:19
Give them a waypoint set to "hold fire" or "never fire".
Title: Re:AI to not fire/target
Post by: Jim666 on 29 Mar 2005, 13:51:42
Yeah but then they wont fire at anyone, and i want them to fire at the other choppers that the players come in. and also the ground troopers that come in.
Title: Re:AI to not fire/target
Post by: macguba on 29 Mar 2005, 14:24:39
You could use setCaptive true/false on the critical chopper, but if you want things to happen in a certain way you'll need to micromanage its destruction.   In other words you control which AA loon shoots at it and when, don't leave it up to the AI.