Jump to content
Nutzgo

Getting vehicle inventory (Copy to clipboard)

Recommended Posts

Hi.
 

Is there a simple way to copytoclipboard e.g. an helicopters inventory?

I've placed a helicopter, and I've made a custom inventory that I want to keep when it respawn. In the respawn script, I have to add each item manually by it's ID. So far, I've found the IDs by using searching in the Ace Arsenal. 
Is there a function that could do this easier for me?

I've tried to paste this function: "copyToClipboard [this, "init", false] call BIS_fnc_saveInventory" into based on this forum post, but that didn't work. I get the "Type array, expected string"-error. 

 

Any suggestions? :)

Share this post


Link to post
Share on other sites

f you want all stuff, with modified inventory after respawn, even with backpacks and their contents, have a look at the second script here:

 

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Pierre, with this script - does every vehicle placed in 3den or Zeus, respawn?

I saw your YT-video on that post, and could not see an option for disabling respawn for vehicles?

Share this post


Link to post
Share on other sites

That depends on parameters you choose, in fact.

For empty vehicles (all) (last param), yes

For side (west, east,... )  yes

But you can make your own array like:

[karl, bob, gus] with some vehicles, no matter the side or empty or not,

or even

vehicles select {!isnil {_x getVariable "whatEverVar"} };   then on script you just have to decide which vehicles you want to mark with that variable, at start in init.sqf or in game (trigger or else).

Doesn't work for vehicles with players inside.

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

×