Bobwarsrvng

Help with Taru Pod Menu

2 posts in this topic

Here is the issue I am having: 

I made Taru Pods purchasable. 

That was easy. 

I can move them around not a problem.

Problem is that I want to be able to lock the cargo box.

I put this in config.cpp
    
class CfgInteractionMenus
    
    class Land_Pod_Heli_Transport_04_box_F
    {
        targetType = 2;
        target = "Land_Pod_Heli_Transport_04_box_F";

        class Actions 
        {
            // Locks a vehicle
            class Lock : ExileAbstractAction
            {
                title = "Lock";
                condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo 0)";
                action = "true spawn ExileClient_object_lock_toggle";
            };

            class Unlock : ExileAbstractAction
            {
                title = "Unlock";
                condition = "((ExileClientInteractionObject getvariable ['ExileIsLocked',1]) isEqualTo -1)";
                action = "false spawn ExileClient_object_lock_toggle";
            };
            
And the menu options don't appear. Just the inventory option. 

I can move stuff in and out of the box
            
This isn't the first addition like this I've made. I did it with tanks and it worked just fine. 

I am at a loss at this point. Its set up just like a car or safe is, so I would think it would work like a car or safe. 

The only point I can think of that might be an issue is that containers go under the container section of the database and taru pods spawn as vehicles. 

Any ideas? 

Thanks!!

Share this post


Link to post
Share on other sites

 

Yeah also getting issues with Taru pods, I used to use them back in the day and only recently put them into a new server and i'm finding issues that never happened before.

The weird part is how they are set up in the editor, three of the pods are available as vehicles and these ones lock just fine in the server if you set them up under class StaticWeapons, these pods include the ammo, fuel and transport, also strangely the bench pod works the same way even though i literally could not find it anywhere in the editor! 

The pod i'm at a loss with is the storage one from the heli dlc (the one with 10k storage) I mean its the perfect addition except i have tried EVERYTHING to get them to lock and repair... they don't even appear as a vehicle in the editor they are found under props which seems lazy of Bohemia Interactive if you ask me... They don't even show up as local objects to in game admin tools which makes me think they literally are just a movable prop.

Sadly with no way to lock and no way to repair it makes them fairly useless in my opinion, will still use them on my server though but will keep the price low to reflect.

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.