OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: russelcoight on 16 Apr 2005, 05:31:14

Title: Adding weapons and ammo
Post by: russelcoight on 16 Apr 2005, 05:31:14
Im noob sorry if this is wrong spot and alrdy been replied to in past.




But ive tried and tried to read through the archives and i cant figure out how to add weapons to things like an a10 or an mi24. For example i want to know how to put a "tank cannon on a "plane".
Or even give an "a10" 1000 maverick rounds. any one know of a guide or the awnser to my problem?

Thanks in advance  ;D
Title: Re:Adding weapons and ammo
Post by: Flauta on 16 Apr 2005, 06:04:08
all of that things you can do them whit addweaponcargo and addmagazinecargo

just check wich is the name of the weapons... i think the maverick is mavericklauncher for the mag and the weapon....
go to Online-ComRef and get the weapons names and their magazines...
Title: Re:Adding weapons and ammo
Post by: bedges on 16 Apr 2005, 09:59:38
actually, the syntax is simply addweapon and addmagazine. so for example, an Ah-64 named chopper could be given another machine gun by putting the following in the init file (or elsewhere) -

Code: [Select]
chopper addmagazine "ZsuCannon"
chopper addweapon "ZsuCannon"

you should always add the magazine first to make sure that the weapon is loaded to begin with...

EDIT - just tried the tank shell and the a10, doesn't work. many combinations do work however, so experiment :)