OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aldo15 on 31 Jan 2011, 04:49:21

Title: How to make for that a unit shoot to nobody?
Post by: Aldo15 on 31 Jan 2011, 04:49:21
Hi!  :D

I'm trying to make that a chopper or any unit,
(Soldier,Chopper,Tank,etc...) Shoot, but without units. I mean, that the unit is alone.

For example:

A Cobra shoot, but there are not anybody. Only shoot for shooting

~Aldo
Title: Re: How to make for that a unit shoot to nobody?
Post by: savedbygrace on 31 Jan 2011, 10:26:21
Some times but not always, you can use the DoFire (http://www.ofpec.com/COMREF/index.php?action=details&id=109&game=All) or Fire (http://www.ofpec.com/COMREF/index.php?action=details&id=132&game=All) commands combined with DoTarget (http://www.ofpec.com/COMREF/index.php?action=details&id=113&game=All) or DoWatch (http://www.ofpec.com/COMREF/index.php?action=details&id=114&game=All) to get them looking in the proper direction.

But AI control is very inconsistent. In fact, it is so much so that some folks have taken the liberty to create invisible objects with priority levels adjusted to become threatening to AI. They work very well.
Fox's Invisible Targets (http://www.ofpec.com/ed_depot/index.php?action=details&id=160) addon is small but very helpful in achieving what you need.


Title: Re: How to make for that a unit shoot to nobody?
Post by: Aldo15 on 31 Jan 2011, 19:35:06
the unit shoot one time, and i don't understand Why the unit does not look his objective? if I'm using the Dotarget and Dowatch command.

~Aldo
Title: Re: How to make for that a unit shoot to nobody?
Post by: savedbygrace on 31 Jan 2011, 20:26:39
Like I said, it's inconsistent. The command does not force a unit to fire until commanded not to. When it works, it only works as many times as you tell it to. The better way is to just use the invisible targets.