OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Robinhansen on 07 May 2005, 17:02:00
-
How do I add ammo to an ammobox wich is camcreated ingame?
-
you could:
_box = (cam code here)
_box addweaponcargo ["M16",20]
and so on and so on
-
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,
_crate = "ammocrate" createvehicle getpos player
_crate addmagazinecargo ["m16",10]
_crate addweaponcargo ["m16",10]
player reveal _crate