OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: lydiajane on 23 Jan 2004, 01:17:31

Title: M2 reload
Post by: lydiajane on 23 Jan 2004, 01:17:31
I need someone to please be pretty specific on how I make an M2 reload itself when below 50 rnds.
Sorry gang I am new at this
Title: Re:M2 reload
Post by: StonedSoldier on 23 Jan 2004, 01:48:28
i dunno how specific you want it so all go real basic,

give the M2 gun a name lets say m2

now create a trigger and where it says condition type m2 ammo "browning" < 50

where it says On Activation type m2 addmagazine "browning"; (gunner m2) sidechat "Ammo Low"

one other thing make sure that on the trigger its set to Repeatedly
Title: Re:M2 reload
Post by: icarus_uk on 23 Jan 2004, 02:27:57
Double post;

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=15255&start=0
Title: Re:M2 reload
Post by: Dubieman on 24 Jan 2004, 00:34:32
Well an easier way to do this is

this addmagazine "wateverammo"

right in the init field of the gun, just find out what ammo it uses like on a site or here at OFPEC

a fun little piece of code here

this addweapon "MachineGun30";
this addmagazine "MachineGun30"

In the INIT field of course, always fun to use
 ;D