Home   Help Search Login Register  

Author Topic: How to make for that a unit shoot to nobody?  (Read 1152 times)

0 Members and 1 Guest are viewing this topic.

Offline Aldo15

  • OFP-addict
  • Former Staff
  • ****
    • My OFP missions
How to make for that a unit shoot to nobody?
« 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
My OFP stuff
FMF Project by Aldo15. Coming soon.
If in the high school or university, Teachers add a new subject about how to make scripts, missions, for ofp. I'd be number one of my classroom

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: How to make for that a unit shoot to nobody?
« Reply #1 on: 31 Jan 2011, 10:26:21 »
Some times but not always, you can use the DoFire or Fire commands combined with DoTarget or DoWatch 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 addon is small but very helpful in achieving what you need.



Offline Aldo15

  • OFP-addict
  • Former Staff
  • ****
    • My OFP missions
Re: How to make for that a unit shoot to nobody?
« Reply #2 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
My OFP stuff
FMF Project by Aldo15. Coming soon.
If in the high school or university, Teachers add a new subject about how to make scripts, missions, for ofp. I'd be number one of my classroom

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: How to make for that a unit shoot to nobody?
« Reply #3 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.