Jump to content
Sign in to follow this  
snkman

AmmoBox Script

Recommended Posts

Hey guy's,

well in OFP i always used this AmmoBox Script:

ammoBox.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_crate = _this select 0

_side = _this select 1

?(_side == "WEST"): Goto "WESTCRATES"

TextLog "Wrong side selected WEST - EAST - RESIST"

Goto "End"

#WESTCRATES

?((getdammage _crate) > 0.1): _crate setdammage 0;

_crate AddWeaponCargo ["LSR_m21_nbp", 5]

_crate AddWeaponCargo ["SJB_TOS_M4_Sniper_C", 5]

_crate AddWeaponCargo ["LSR_m249spw_acog", 5]

_crate AddWeaponCargo ["SJB_TOS_M249", 5]

_crate AddWeaponCargo ["LSR_mp5a4", 5]

_crate AddWeaponCargo ["OFPL_M4A1GL_EOT", 5]

_crate AddWeaponCargo ["LSR_lawLauncher", 5]

_crate AddWeaponCargo ["SJB_TOS_LR300_Sniper_Bipod", 5]

_crate AddWeaponCargo ["LSR_m21_nbp_sd", 5]

_crate AddWeaponCargo ["SJB_TOS_M249", 5]

_crate AddWeaponCargo ["LSR_mp5a4", 5]

_crate AddWeaponCargo ["OFPL_M4A1GL_EOT", 5]

_crate AddWeaponCargo ["SJB_TOS_M249", 3]

_crate AddWeaponCargo ["LSR_m4_m203_rx", 2]

_crate AddWeaponCargo ["SJB_TOS_M4_Cmag", 2]

_crate AddWeaponCargo ["LawLauncher", 2]

_crate AddMagazineCargo ["LSR_m21mag", 20]

_crate AddMagazineCargo ["SJB_TOS_M4_mag", 20]

_crate AddMagazineCargo ["LSR_m249mag", 20]

_crate AddMagazineCargo ["SJB_TOS_M249_mag", 20]

_crate AddMagazineCargo ["LSR_mp5mag", 20]

_crate AddMagazineCargo ["JAM_W556_30mag", 20]

_crate AddMagazineCargo ["JAM_M433Belt", 10]

_crate AddMagazineCargo ["LSR_lawAT", 20]

_crate AddMagazineCargo ["LSR_lawHE", 20]

_crate AddMagazineCargo ["SJB_TOS_LR300_mag", 20]

_crate AddMagazineCargo ["LSR_m21sdmag", 20]

_crate AddMagazineCargo ["SJB_TOS_M249_mag", 20]

_crate AddMagazineCargo ["LSR_mp5mag", 20]

_crate AddMagazineCargo ["JAM_W556_30mag", 20]

_crate AddMagazineCargo ["SJB_TOS_M249_mag", 10]

_crate AddMagazineCargo ["LSR_m4mag", 5]

_crate AddMagazineCargo ["LSR_m203vest", 5]

_crate AddMagazineCargo ["SJB_TOS_M4_Cmag_mag", 5]

_crate AddMagazineCargo ["LawLauncher", 5]

_crate AddMagazineCargo ["Mine", 10]

_crate AddMagazineCargo ["PipeBomb", 10]

_crate AddMagazineCargo ["TimeBomb", 10]

_crate AddMagazineCargo ["SmokeShell", 10]

_crate AddMagazineCargo ["SmokeShellRed", 10]

_crate AddMagazineCargo ["SmokeShellGreen", 10]

~10

Goto "WESTCRATES"

#End

Exit

Someone got one for ArmA (in .sqf ) ? whistle.gif

Share this post


Link to post
Share on other sites

You know SQS still works in ArmA. Also, stop relying on others to do all your scripting, instead figure out how to use SQF and do it yourself, it's NOT hard if you already know SQS.

Second, that script seems like it's missing something, because as it is it would just keep adding all those weapons again and again every 10 seconds (in otherwords it's an ammo bug script...).

Share this post


Link to post
Share on other sites
(...) in otherwords it's an ammo bug script...

You're right. Why would anyone want to put that in their mission? Any multiplayer server would become increasingly unplayable.

Share this post


Link to post
Share on other sites

@KyleSarnik

I do not want someone to convert it to .sqf i just ask if someone already got such a Script and of course i would prefer .sqf

Ask costs nothing.

If yes ok if not okay too.

Well about the "bug" i always used it in OFP and it always work's well.

@MadDogX

I do not wand someone to put this in his Mission i'm just looking for such a Script working in ArmA.

The code above was just an example!

Share this post


Link to post
Share on other sites
Well about the "bug" i always used it in OFP and it always work's well.

No, you probably wouldn't have noticed if you weren't in MP, because in OFP you couldn't tell how many weapons were in the crate, while it was still continually adding an infinite amount of weapons and ammo to the crate you couldn't tell. In ArmA however, the gear menu shows the quantity of weapons and ammo (ammo at least) in a crate. Also, using this in MP will definately cause an ammo bug since it will eventually (likely very quickly) overfill ANY ammo crate (which must have a finite weapon and ammo capacity).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×