Jump to content
Sign in to follow this  
bboy

add Magazines/Weapons in Backpacks?

Recommended Posts

i was searching and trying a bunch of things to do that... without result... I want to remove originally bacpack from the unit... Done! i want to put another backpack on the same unit... Done! Now i want to put some ammo in that backpack... not done... help please

Share this post


Link to post
Share on other sites

They are basically ammoboxes, so use the cargo commands:

(unitBackpack this) addmagazinecargo ["magName",6];

(unitBackpack this) addweaponcargo ["gunName",1];

Share this post


Link to post
Share on other sites

i tryed that to... nothing... cos' i did it something wrong probably... what is unitBackpack this? and to put just like this inside () ?!

Share this post


Link to post
Share on other sites

Well, instead of doing myAmmoBox add.., we get the unit's pack with that unibackpack this. Using "this" obviously means it's meant for unit's init field. Works with unitbackpack myUnitsName as well.

Share this post


Link to post
Share on other sites

my unit name is: g1

backpack name is: tripod_bag

i want to put inside Magazine "Javelin"

(unitBackpack this) addMagazineCargo ["Javelin", 1]

nothing...

write me if you can

Share this post


Link to post
Share on other sites
The Tripod Bag has no cargo, which is why the Javelin won't fit. It's just a tripod, nothing more.

To see much how cargo can fit in each bag see my post here:

http://forums.bistudio.com/showthread.php?t=103207

That's a shame, it's a nice bag for one Magazine of Javelin... Looks good! Thank you for the link

Share this post


Link to post
Share on other sites

Well it looks like those screen shots are paying off already kylania

Share this post


Link to post
Share on other sites
That's a shame, it's a nice bag for one Magazine of Javelin... Looks good! Thank you for the link

The AT variation of the coyote backpack is even better... It comes preloaded with two Javelins. Classname: US_Backpack_AT_EP1

Share this post


Link to post
Share on other sites
The AT variation of the coyote backpack is even better... It comes preloaded with two Javelins. Classname: US_Backpack_AT_EP1

I already put that... I wannet also to put that from the Metis... don't know if i can... looks diferent for a change...

Share this post


Link to post
Share on other sites

How can I spawn an existing backpack on a soldier?

Share this post


Link to post
Share on other sites

Thats not good because it will spawn a brand new backpack. I need to spawn a backpac that I put on map and sync to UAV module.:)

Share this post


Link to post
Share on other sites

My bad-for once, i didnt actually read the whole thread! :D

Share this post


Link to post
Share on other sites
Thats not good because it will spawn a brand new backpack. I need to spawn a backpac that I put on map and sync to UAV module.:)

Use

this addBackpack "US_UAV_Pack_EP1";
backpack = unitBackPack this;
UAV synchronizeObjectsAdd [backpack];

Where this = player in his init line and UAV is the name of the module. Sync the module to the UAV in flight and the player and you will be able to use the UAV anywhere you are standing.

Edited by SigintArmA

Share this post


Link to post
Share on other sites
Yeah, we need commands like backpackPutOn and backPackPutOff (or equivalent actions).

There are actions for TakeBag and PutBag now. :)

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  

×