OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Diepvriezer on 29 Jan 2003, 19:29:10
-
I want to place heavy guns at the civilian plane :D...
I know how to do that, but where can I find the list of the weapon names and magazine names off the guns at tanks and choppers etc. ???
-
i have never tried to change what weapons a vehicle has...
first, download my Command Reference ;D (47Kb) http://hammy.netfirms.com/ComRef_191.zip (http://hammy.netfirms.com/ComRef_191.zip) or u can find it in the editors depot ;)
second, start up the commandreference then press ctrl+w)
third, open OFP, create a plane :)
fourth, go into the planes init field, and put: this addmagazine "AMMO_TYPE" (change AMMO_TYPE to the type of ammo you want the plane to shoot)
fifth, preview the plane in OFP
im pretty sure that this wont work, but its worth a try :P
if it doesn't work, you might have to create a addon ;)
-
I still don`t know how to do it :(
-
I love this part of editing. This was the first thing I messed around with when I learned the in-game editor. Try this...
Add a civilian plane to the map, then in its init field put this...
this addmagazine "Browning"; this addweapon "Browning"
Your Cessna will now shoot .50 cals from its nose. :D
Unfortunately, you can't really decide where it fires from, but everything works. The Mavericks on the A-10, the TOWs from the Cobra. Everything. Except infantry weapons.
You can actually do a lot with these simple commands. You can give a simple foot soldier FFARs or TOWs as weapons (although it looks somewhat strange, as they use the standard shoulder fired animation, but there's no model). You can even add a Browning 50 cal to a footsoldier (but it shoots from his chest) The only thing you can't add weapons to, for some reason, is cars.
Anyway, hope that helped a bit.
-
Ok, thanks, but do you have a list with tanks and planes weapons?
I already have one with soldiers weapons :D
-
Try the Unofficial Command reference. Someone around here must have the old link. :\