Home   Help Search Login Register  

Author Topic: Ammo Crates  (Read 880 times)

0 Members and 1 Guest are viewing this topic.

Offline campbell

  • Members
  • *
  • I'm a llama!
Ammo Crates
« on: 16 Oct 2004, 04:04:50 »
How do i put ammo in crates? newbe ;D ;D

Dubieman

  • Guest
Re:Ammo Crates
« Reply #1 on: 16 Oct 2004, 04:43:50 »
In a script form is one way.  :P

But since your new, WELCOME. And head to the Editor Depot and grab all the tuts and stuff you can find and go crazy. Or look up the FAQs here at OFPEC. :)

If you don't understand me, Macguba will be along some time soon to get you in the right direction.
 ;)

I think Macguba could easily become

Editor depot contributor/guy, intel depot boss, and OFPEC's official recepionist. How abouts? :D ;D

Dagon

  • Guest
Re:Ammo Crates
« Reply #2 on: 16 Oct 2004, 09:30:09 »
put this in the crate's "init" line:

this addweaponcargo ["<weaponname>",<number in digit form>]

for a weapon, or

this addmagazinecargo ["<magname>",<number in digit form>]

the quotes have to be included around the magazine or weaponname.

As an example:

this addweaponcargo["m16",4]; this addmagazinecargo["m16",40]; this addweaponcargo["m21", 1]; this addmagazinecargo[",m21", 8]

this line of code would put 4 m16 rifles, 40 m16 clips, 1 m21 and 8 m21 magazines in the ammo crate.

Also:

put "clearmagazinecargo this" and "clearweaponcargo this" (without quotes) as the first two parts of the init line, so it looks like this:

clearmagazinecargo this; clearweaponcargo this; <rest of script>

However, none of this probably makes perfect sense, so I've opted to simply make an example mission and attach it.


Offline Roni

  • Members
  • *
  • Play the Game !
Re:Ammo Crates
« Reply #3 on: 18 Oct 2004, 09:29:05 »
HI Campbell

Try this little script.  It clears out the target ammo crate and puts in a bunch of whatever you want (open it and edit the various addweapon and addAmmo lines to make it hold what you want).

Best of all, it keeps running and every two minutes it restocks itself.  Lots of fun for death matches nd running gunfights.
Cheers



Roni

Offline campbell

  • Members
  • *
  • I'm a llama!
Re:Ammo Crates
« Reply #4 on: 15 Nov 2004, 00:50:26 »
Just  like to say thanks to all for help. ;D ;D