Home   Help Search Login Register  

Author Topic: Problem with adding weapons to ammo truck  (Read 498 times)

0 Members and 1 Guest are viewing this topic.

Commando

  • Guest
Problem with adding weapons to ammo truck
« on: 03 Aug 2003, 16:23:44 »
I have a problem with a ammo truck.... I have put in the clearmagazine and clearweapon codes and then i have added ak74 + ammo but i can't find the weapons when im trying to pick them up :P

m21man

  • Guest
Re:Problem with adding weapons to ammo truck
« Reply #1 on: 03 Aug 2003, 16:44:15 »
Use clearweaponcargo/clearmagazinecargo and addweaponcargo/addmagazinecargo commands. :)

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:Problem with adding weapons to ammo truck
« Reply #2 on: 04 Aug 2003, 00:33:04 »
; Get the crate parameter given
_crate = _this Select 0

; Remove the stock items from the crate
ClearMagazineCargo _crate
ClearWeaponCargo _crate

; Add the items to the crate
_crate AddWeaponCargo ["AK74", 5]
_crate AddMagazineCargo ["AK74", 25]

Exit


thats just got the ak74 and magazines in