OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dragonshinobi03 on 25 Jan 2004, 05:17:22
-
Hi, How do i get a west plane think it was called AH1(LGB) sumtin like that how do i get that air unit to drop it bomb on a tank but never fire its gun
-
u bring up a hard question. i think there is a waypoint called destroy, make one and drag it over to the object being attacked. this is for destroying 1 thing only. does this solve ur question?
-
this ani't what i meant i mean is a plane has two types of weapon a bomb and a gun. how do i get a plane to drop the bomb on the target i tried destroy but it just shoots the gun, until its destroyed
-
You can remove the ammo from the gun
i don't remember the syntax, you can look it up, or someone who knows can add to this query.
It's on this site somewhere if you wanna look. Weapons and ammo list.
;D
-
removeMagazine
-
I don't think that'll work. The bombs on the plane are 2000 pound LASER guided bombs. They're meant to be guided by the laser used by the black op or the OH-58. Otherwise, the AI won't use the bombs, and If you're flying the plane, you need a guy pointing the laser for you (hard to do) or just guess and drop them "Dumb".
-
Using the Invisible Target Addon works a treat for stuff like this. You can get Air Craft to Bomb infantry if you use the correct Target type.
-
Hey thanks for the quick replys guys
ok i made a blackop now, how do i get the person to target the tank and make the plane destroy the target
Thanks in advance
-
I think snYpir wrote a tute on the laser designator. Check the Ed Depot.
-
Could this be done with a camcreate thing...?
It would work.. But look rubbish..
snYpir's tutorial is good.. I make a helicopter (Using laser designator on one of them) and an air strike using that :)
It works well..
But how does the plane know to use that laser desig. but not that other one...?
- Ben
BTW, you would need to open the CPP of the A10B to get the magazine name.. But I think its one of these :
"Cannon25HE"
"Cannon30AP"
"Cannon30HE"
But I'm not sure which one... If any?
-
A10 drop LGB's
Name yer plane A
WP's On Activation field goes:
A fire ["LaserGuidedBombLauncher", "LaserGuidedBombLauncher", "LaserGuidedBombLauncher"]
But as this will only fire ONE frikkin' bomb yer better off using a black Op. with LaserDesignator,
as the bird will attack whatever target he paints with his designator.
(or make a script, a looped "fire" command)
------
Alternatively ya can remove the Mgun & simply put a "Destroy" WP upon some enemy!
Then she is forced to use the LGB's
INIT field Syntax:
This removeWeapon "MachineGun30A10"
PS.
to remove the mag's only, use:
this removeMagazines "MachineGun30A10"
This said, the absolutely best solution is to paint the target with you Laser desig. (black Op.) and then wait for the plane to take 1 or 2 fly-by's (to get position of target) and then coming in to drop that egg) 8)
-
Hey,
Thanks alot for those quick replys. I will try what all u guys told me. rthanks again