OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NightJay0044 on 05 Sep 2005, 01:39:12
-
Alright, I have the player (ME), and 1 civilian, and a BMP on the map. Alright what I want to do is to get the BMP to use it's cannon to shoot the civilian instead of using it's machine gun.
From start to finish how do I go about doing that?
THanks.
-
I believe the lower the civilian's rating, the more threat they pose to the tank, so try this:
loon_1 addRating -500000
where loon_1 is the civvy. The tank should shoot the poor sod with a tank round then.
-
Where am I saposed to type that code, in a script, init field or other? If i type it in the civlians init field, if I put this "this addrating blahblah", it doesn't work then, the tank fires it's machine guns. Any thoughts?
-
perhaps a higher rating?
-
perhaps:
tankname selectweapon "cannonName"
where you would need to change cannonName to whatever the classname of the cannon for the bmp
you may be able to try (primaryweapon tankname) as well
-
I didn't think a BMP would shoot a civilian. I think you would need to make the civi west by grouping him with a west soldier that has probability of presence set to false. Then the BMP will see him as west even if he looks like a civi.
Why not just remove the machinegun ammo from the BMP? Something like:
BMPname removeMagazines "MachineGun7_6"