OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bootneckofficer on 01 Jun 2006, 18:02:28

Title: brief attack
Post by: bootneckofficer on 01 Jun 2006, 18:02:28
heya all,

how do i get a group of terrorists (a1 - a5) to shoot a couple of shots towards a truck (t1) by some good guys (i dont want the good guys to get injured), then the bad guys run away? any thoughts?

bootneckofficer
Title: Re: brief attack
Post by: Gogs on 01 Jun 2006, 18:59:04
Well, getting the terrorists to target the truck can be done with

unitname DoTarget truckname

Then you can get them to fire with

unitname DoFire truckname

Then running off can be achieved with

unitname move getpos nameofanobjectintherightrirection

or

unitname move getmarkerpos "nameofamarkerintherightrirection"

Getting them not to hit the guys in between is all about careful positioning. Make sure they are setcaptive true to stop the AI executing them too...