red_ned

Adding poptabs to crates for mission?

6 posts in this topic

Anyone happen to know how I can add tabs into a crate or vehicle as I want to use it in some new missions I am writing.

 

cheers

Share this post


Link to post
Share on other sites

I use this syntax:

_vehicle = createVehicle ["Exile_Container_Storagecrate", [13845.2,21643.4,0.1], [], 0, "CAN_COLLIDE"];
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
_vehicle setVariable ["ExileMoney", 10,true];

Change the container type from "Exile_Container_Storagecrate" to whatever you want.  Adjust it's position as needed.

Change _vehicle setVariable ["ExileMoney", 10,true];  where 10 is the amount of tabs you want to put in the container.  Be sure not to overfill the container.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement
16 minutes ago, BlackheartsGaming said:

I use this syntax:

_vehicle = createVehicle ["Exile_Container_Storagecrate", [13845.2,21643.4,0.1], [], 0, "CAN_COLLIDE"];
clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
_vehicle setVariable ["ExileMoney", 10,true];

Change the container type from "Exile_Container_Storagecrate" to whatever you want.  Adjust it's position as needed.

Change _vehicle setVariable ["ExileMoney", 10,true];  where 10 is the amount of tabs you want to put in the container.  Be sure not to overfill the container.

cheers, I was ok at loading items but couldn't find anything about tabs

this helps me a load so thanks

Share this post


Link to post
Share on other sites

@BlackheartsGaming Thanks for sharing this. Just wondering why I cant change the container to "Exile_Item_SafeKit"?

Do I have to add "Exile_Item_SafeKit" in DMS scripts somewhere as a container type? Or is it classed as an item not a container?

Share this post


Link to post
Share on other sites
On 5/31/2017 at 11:51 PM, aussie battler said:

@BlackheartsGaming Thanks for sharing this. Just wondering why I cant change the container to "Exile_Item_SafeKit"?

Do I have to add "Exile_Item_SafeKit" in DMS scripts somewhere as a container type? Or is it classed as an item not a container?

The Exile_Item_Safekit is the item class, if you wanted to add tabs to an existing constructed safe it would be Exile_Container_Safe.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.