OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: lydiajane on 22 Jan 2004, 21:48:21

Title: M2 Machinegun
Post by: lydiajane on 22 Jan 2004, 21:48:21
About a year ago someone told me how to get an M2 to reload when rounds got down to a certain number. Please help again.
Title: Re:M2 Machinegun
Post by: dmakatra on 22 Jan 2004, 21:53:03
sumthin like:

@ M2name ammo == 100
M2name addmagazine "M2"

???

:beat: *Gets Shot* :beat:
Title: Re:M2 Machinegun
Post by: lydiajane on 22 Jan 2004, 22:20:14
That's it!  I just put that in the "condition" for the specific m2
Title: Re:M2 Machinegun
Post by: icarus_uk on 23 Jan 2004, 02:24:51
Youd need a trigger.

Condition
M2Name ammo "browning" <= 100

Activation
M2Name addmagazine "M2"

But that wouldnt reload it.  That would just give it an extra magazine for the user (AI or human) to reload.