OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Smoshy on 02 Oct 2002, 04:02:31
-
I am trying to do a WW2 mission where planes fly over and men parachute out to carry on there merry way. What I can't seem to do is make the enemy units on the ground shoot at the planes (specifically the Heavy Gunners). Any help much appreciated.
Smoshy :)
-
I don't know the answer, so this is just a suggestion. Your best bet is an M2: call the gunner mg1 and call the plane plane1. Place the M2 so that it can actually hit the plane - the maximum angle of elevation is not very high. Test it with yourself as the gunner.
In an appropriate trigger put
mg1 doTarget plane1; mg1 doFire plane1
syntax not guaranteed, check the un+official command ref guides in the Editors' Depot.
Probably a better idea would be to fake it with a flak script: I think there is one in script snippets in the Ed depot but I'm not sure.
-
You could replace the "Browning" on the M2mgun with a ZSUcannon.
The ground MG's - be it soldiers or the static mGun - won't fire at
heavy armored aircraft; but they'll fire at lighter birds like the Cessna plane.
Depending on the (addon?) you're using, try this ( INIT field of an M2mg ) :
This RemoveWeapon "Browning"; This AddMagazine "ZSUcannon"; This AddWeapon "ZSUcannon"
Then I promise ya that he WILL fire at ANY hostile bird that does a fly-by. 8)