Jump to content
Sign in to follow this  
thetrooper

Backpacks in vehicles?

Recommended Posts

Does anyone know of a way to put backpacks in a vehicle as part of cargo?

I tried the following, but no joy.

car1 addItemCargo ["B_AssaultPack_blk", 1];

Share this post


Link to post
Share on other sites
try addBackpackCargo

That works a treat, thanks ;)

---------- Post added at 01:04 AM ---------- Previous post was at 01:03 AM ----------

It there anyway I can have items already in it, so when I take the pack there's items in it?

Share this post


Link to post
Share on other sites

Not that I know of, at least not in a script. You'd have to create a new backpack in an addon, which would require players to have a mod installed.

The only thing I can think of would be to find the class name of a backpack that's already used by one of the soldiers in the game. As far as a custom filled backpack I don't think you can do that.

Share this post


Link to post
Share on other sites

hmmm, just thinking about this. What If I had a backpack added from empty items in editor, added some items in in and then somehow added the backpack into the cargo in a vehicle?

Share this post


Link to post
Share on other sites
hmmm, just thinking about this. What If I had a backpack added from empty items in editor, added some items in in and then somehow added the backpack into the cargo in a vehicle?

You could probably spawn a unit far off and give him a back pack with items in it and add that bag into the cargo. Take a look at this. Should allow you to place a bag into a vehicle from any distance.

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  

×