OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cosgrove1982 on 29 Sep 2002, 03:44:07

Title: Helicopter Firing...while landing/hovering
Post by: cosgrove1982 on 29 Sep 2002, 03:44:07
Hi
I'm making a mission in which i need a couple of helicopters (blackhawks) to fly in, come in to land and fire on enemy ground troops.

I can do the landing part through various methods....but i can't seem to get the helo to fire AND land (or even just stay still for a moment).  

The Dofire and CommandFire commands could be useful but when used, the helicopter abandons the route laid down by the waypoints.

i'd appreciate any help you people can offer.........i don't think there's a simle answer though.

(this is all for a "we were soldiers" type of mission)

thanks again!!!
Title: Re:Helicopter Firing...while landing/hovering
Post by: Cloughy on 04 Oct 2002, 12:47:53
I had this work in a couple of MP missions. But it with simply setting the combat mode to careless and changing them off never fire to open fire when they are in the area. But the choppers will shoot at enemy, but on their own free will. I dont tell them to target the enemy just let em shoot if they see em. But if you wanted to the chopper to definatly shoot at someone(if the are enemy) then you could use the reveal target command so the chopper knows about the enemy and will shoot them if there on open fire. Keep em on careles though or the chopper will bugger off.
I got this working on a Ch-47 evac on Operation Majestic. As ruskie bullets were whizing around the chinook and us, the gunner was letting rip whilst we loaded up.
Cheers
GC
http://www.ghc.dsl.pipex.com
Title: Re:Helicopter Firing...while landing/hovering
Post by: lilmat on 04 Oct 2002, 17:49:10
Hey! There ;D
These may be the commands you are looking for?
------------------------------------------------------------
group reveal unit
Operand types:
    group: Object or Group
    unit: Object
Type of returned value:
    None
Description:
    Reveal unit to group, do not care if it can know about it or not.

Example:
    soldierOne reveal soldierTwo
------------------------------------------------------------
                            or


unit knowsAbout target
Operand types:
    unit: Object or Group
    target: Object
Type of returned value:
    Number
Description:
    Check if (and how much) knows unit about target. If unit is vehicle, vehicle commander is considered.

Example:
    soldierOne knowsAbout jeepOne

------------------------------------------------------------
These commands taked from the offical coomand ref manual!
Hope this helps!! 8)
Title: Re:Helicopter Firing...while landing/hovering
Post by: cosgrove1982 on 05 Oct 2002, 20:20:04
thankyou so much for your help guys!!!
i really appreciate it.

i'll let you know how i get on..but i think that your solution should work.

cheers!!!!