Jump to content
Sign in to follow this  
fn_Quiksilver

Vehicle spawning without inventory?

Recommended Posts

Hi,

I'm trying to add vehicles with empty inventory to multiplayer missions.

Specifically I'd like Hunter MRAPs to spawn with nothing in them. Currently they spawn full of generic magazine/weapon stuff. Since there is no easy way to flush an inventory in-game, it becomes a tedious process trying to load a vehicle up with mission-specific gear.

Can someone walk me through the process of getting re-spawning vehicles to have no inventory?

Share this post


Link to post
Share on other sites

clearWeaponCargoGlobal this; clearMagazineCargoGlobal this; clearItemCargoGlobal this

Putting that in the vehicle init will empty the inventory.

Share this post


Link to post
Share on other sites

if you want to remove the inventory when you are creating the vehicle via scripts you can do it like this:

_vehicle = "B_MRAP_01_F" createVehicle _pos; //something like this should already be there

clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;

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  

×