OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LightWalker on 31 Jan 2003, 21:56:53

Title: Flares
Post by: LightWalker on 31 Jan 2003, 21:56:53
When I put flares in my scripted custom_ammocrate for a nightmission, all weapons are in the crate exept those flares... and I really need them. What's the problem with those flares?
Title: Re:Flares
Post by: MorMel on 01 Feb 2003, 02:21:48
Have you tried to add those flares at the ammo section during the plan (requires description.ext configuring)?

Have you tried to '_crate addMagazineCargo ["WeaponName",Quantity-Integer]'?

ex.: crate1 addMagazineCargo ["FlareRed",10]
Title: Re:Flares
Post by: LightWalker on 01 Feb 2003, 11:58:33
Yep, I tried that. Doesn't work.
I tried to add them in the Desciption file and in CUSTOM_CRATE.SQS.
Those flares mak me quite desperate!  :'(
Title: Re:Flares
Post by: Josef on 02 Feb 2003, 23:09:34
INIT: this addMagazineCargo [Flare,10]
Title: Re:Flares
Post by: vektorboson on 02 Feb 2003, 23:21:29
Another question:

Do you have a M16 or AK74 with Grenadelauncher attached? You can only take Ammo for Weapons you carry with you! I.e. you can't pick up a M21 magazine if you don't have a M21!
Title: Re:Flares
Post by: Cake on 03 Feb 2003, 14:35:54
I don't understand your question, but m16 w/ grenadelauncher uses same ammo as normal m16 for the normal fire... if you want to pick m21 ammo when you have m16 your self, you can use a script to give you m21 mag...
Title: Re:Flares
Post by: macguba on 03 Feb 2003, 15:05:23
I think what vektorboson meant was that, in order to pick up flares from this pesky ammo crate, you must be equipped with an M16 or AK74 that has a grenade launcher attached.       It is possible that Lightwalker has successfully added flares to the crate but doesn't know it, because when he Previews the mission to test the crate he is armed with a plain M16.    ;D

That's one of the joys of mission creation:  half the time you don't really know what the problem is .......

Title: Re:Flares
Post by: Cake on 03 Feb 2003, 18:42:29
Oh.. Well... You can make a trigger, like 3x3 over the ammo crate, and put to the activation field: aP addaction ["Take Flare","Flare.sqs"] And then make a script that looks like this:

aP addmagazine "Flare"

And save it as Flare.sqs to your mission folder (example -> users/aP/missions/test.intro)

Not sure about this but i think it works. 8)