Home   Help Search Login Register  

Author Topic: addmagazinecargo  (Read 536 times)

0 Members and 4 Guests are viewing this topic.

Robinhansen

  • Guest
addmagazinecargo
« on: 07 May 2005, 17:02:00 »
How do I add ammo to an ammobox wich is camcreated ingame?

CopyrightPhilly

  • Guest
Re:addmagazinecargo
« Reply #1 on: 07 May 2005, 17:07:58 »
you could:

_box = (cam code here)

_box addweaponcargo ["M16",20]


and so on and so on

StonedSoldier

  • Guest
Re:addmagazinecargo
« Reply #2 on: 07 May 2005, 22:42:40 »
one pointer, you might want to get used to using createvehicle instead of camcreate

and after youve created the crate use the reveal command or else you wont be able to take stuff from the crate instantly,

Code: [Select]
_crate = "ammocrate" createvehicle getpos player
_crate addmagazinecargo ["m16",10]
_crate addweaponcargo ["m16",10]
player reveal _crate