ATU.Lasthope

ESCORT PLAYER! HELP

2 posts in this topic

Im trying to create escort player like when a player is cuffed then escorting them (moving them while cuffed) is there anyone who can help?

 

ive got this but thats it 

Any type of player to player interactions will be defined under the player class in your mission pbo. So an example of what this would look like is:

class Player 
    {
        targetType = 2;
        target = "Exile_Unit_Player";

        class Actions 
        {
            class Escort: ExileAbstractAction
            {
                title = "Escort";
                condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', false]) && !ExileClientIsHandcuffed";
                action = "_this call fnc_Escort";
            };
            
            class stopEscort: ExileAbstractAction
            {
                title = "Stop Escort";
                condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', false]) && !ExileClientIsHandcuffed";
                action = "_this call fnc_stopEscort";
            };
        };
    };

Not mine! Sent as an example but im just a small noob trying to get by......

Share this post


Link to post
Share on other sites

                title = "Escort";
                condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', false]) && !ExileClientIsHandcuffed";
                action = "_this call fnc_Escort";

replace with this maybe?

                title = "Escort";

                condition = "(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['ExileIsHandcuffed', true]) && !ExileClientIsHandcuffed";
                action = "_this call fnc_Escort";

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.