OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: vrbanec on 29 Jan 2005, 20:16:40

Title: make ai not fire object
Post by: vrbanec on 29 Jan 2005, 20:16:40
Simple as that, how to make ai not to fire at some object? not even to target it, even if it's an enemy to him?
Title: Re:make ai not fire object
Post by: GI-YO on 29 Jan 2005, 20:22:48
If you set the waypoint for this unit to 'Never Fire' in the waypoint box then he wont shoot at anything.

GI-YO
Title: Re:make ai not fire object
Post by: vrbanec on 29 Jan 2005, 20:31:35
Yes, but then he won't fire at anything. For example, i don't wan't a tank to shoot at me, but I want him to shoot at everybody else, and behave normally.

is there something as opossite of dofire or dotarget command?
Title: Re:make ai not fire object
Post by: Unnamed on 29 Jan 2005, 22:36:49
You could try setting yourself to Captive? Using the command:

Code: [Select]
Player SetCaptive True
I think that would stop the enemy firing at you?
Title: Re:make ai not fire object
Post by: vrbanec on 30 Jan 2005, 15:21:54
setcaptive command is a good idea, but it doesn't work on objects. Ok, here's what I'm trying to do.
I know that i can't put solider to shoot behind some objects. for e.g. Wood fence. But i have in support an object called sandbag wall east. AI shoots behind that and it looks just like Wood fence.
The problem is that because of some reason west (and resistance) tanks shoot at this sandbag and I don't want them to shoot at it. I don't know why do they shoot at it?

a sollution might be to change the side of that sandbag to civilian? i don't even know how can an empty object have a side?