Sebas

Pack Quad

16 posts in this topic

_this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class
deletevehicle _this;
player addItem "Exile_Item_DuctTape";

 

Share this post


Link to post
Share on other sites
Advertisement
On 1/28/2019 at 10:10 AM, MGTDB said:

_this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class
deletevehicle _this;
player addItem "Exile_Item_DuctTape";

 

MGTDB?

Share this post


Link to post
Share on other sites

You would need to add that as an action in mission config where target = the vehicle you want to pack

class PackQuad: ExileAbstractAction
{
	title = "Pack Quadbike";
	condition = "((typeOf ExileClientInteractionObject) isEqualTo 'Exile_Bike_QuadBike_Black')";
	action = "execVM 'thepathtoyourpackingfile.sqf';";
};

 

  • Thanks 1

Share this post


Link to post
Share on other sites

class PackDeployedVehicle: ExileAbstractAction
            {
                title = "Pack Vehicle";
                condition = "call ExAd_XM8_DV_fnc_canPack";
                action = _this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class
               deletevehicle _this;
               player addItem "Exile_Item_DuctTape";

  };

Edited by Sebas

Share this post


Link to post
Share on other sites
On 2/4/2019 at 7:06 PM, Sebas said:

class PackDeployedVehicle: ExileAbstractAction
            {
                title = "Pack Vehicle";
                condition = "call ExAd_XM8_DV_fnc_canPack";
                action = _this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class
               deletevehicle _this;
               player addItem "Exile_Item_DuctTape";

  };

 

18 hours ago, Sebas said:

Are you the exact lines that I must add?

That's not what DB posted; you've just added a random additional line to the interaction for ExAd and completely ignored what DB posted.

Share this post


Link to post
Share on other sites

I did exactly what he told me. Add the lines to Action. I just want to confirm that these as his. If not help me to make the order properly please.

Share this post


Link to post
Share on other sites

Ok, how do the players spawn the quad, is it from Exad or just an addAction?
If you copy your spawn quad code into this thread, then we can check any variables that are set etc and can tailor the code specifically for you.

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.