OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Blanco on 05 Mar 2007, 20:20:51

Title: How to prevent AI firing at empty vehicles?
Post by: Blanco on 05 Mar 2007, 20:20:51
Ok, an empty vehicle can be a threat, but not when enemy troops are firing at you. I've seen situations where the AI ran out of ammo,because they really want to destroy an empty & damaged UAZ. That's stupid, because an empty vehicle can be used against the enemy.

When you order your men to attack a UAZ with MG (just an example) , they will try to kill the gunner and driver first, but after that they really want to destroy the UAZ completely.
Ok, when I'm in command, I can always cancel the target, but AI-officers don't do that. Even worse, when you kill the gunner and the driver disembarks, the AI will fire at the UAZ instead of the driver.

How can I fix that with a script?

I tried setcaptive & setfriend but both commands don't work on vehicles, only on troops.
Any suggestions?
Title: Re: How to prevent AI firing at empty vehicles?
Post by: FreeBird on 05 Mar 2007, 20:52:37
Maybe the new 1.05 Command Addvehicle can do something for you?

Syntax: group addVehicle vehicle

Title: Re: How to prevent AI firing at empty vehicles?
Post by: Blanco on 05 Mar 2007, 21:12:50
THx, I give it a try.

But I don't understand that description "Added 1.05 needs populating."  ???

It's an old OFP bug and I solved it by creating the exact same vehicle on the exact same spot with the exact same damage values & direction. That works, but it's drastic. I was hoping for a better solution in Arma.

I gonna report this as a bug because imo this is a bug. A priority of targets bug.

Nice signature btw :)