OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bdfy85 on 27 Sep 2005, 16:56:02

Title: Can't make units to fire at the invisible target :(
Post by: bdfy85 on 27 Sep 2005, 16:56:02
When I place invtarget in front of target - bots fire at it automaticly ,without further orders.
I wrote a script that camcreates the invtargets  in front of target ( TargetE ) , but Ai units do not fire ! :( What is the probloem ?
See the example attached ( invtargets addon included )
Title: Re:Can't make units to fire at the invisible target :(
Post by: Mr.Peanut on 27 Sep 2005, 17:28:00
Use createVehicle instead of camCreate.
Title: Re:Can't make units to fire at the invisible target :(
Post by: bdfy85 on 27 Sep 2005, 18:46:01
that's exactly what I used ;)
Title: Re:Can't make units to fire at the invisible target :(
Post by: bedges on 27 Sep 2005, 18:59:28
try adding a reveal command (http://www.ofpec.com/editors/comref.php?letter=R#reveal). sometimes ai gets confused when objects materialise in front of them. it takes a few seconds for their noddles to  catch up ;)

Title: Re:Can't make units to fire at the invisible target :(
Post by: bdfy85 on 27 Sep 2005, 20:09:56
bedges
yes, it works ;) 10x