Boxman80

Script Help

3 posts in this topic

Hi, I wasn't sure where to post this, so apologies if it's on the wrong board! 

Basically I want to adapt a script (by Blacksheep -http://opendayz.net/threads/release-deploy-and-pack-bike-arma3-epoch-updated.21622/ ) to create a craftable quad that's triggered through the XM8 app. I just want to add materials required to be able to craft the quad (e.g wheel, junk metal x2). I presume this needs adding somewhere in the initial if statement but I'm not sure of the correct syntax.

 

The script is below:

Quote

//Credit to Blacksheep
            if ("Exile_Item_CarWheel" in _equippedMagazines)
            {
                player removeMagazine "Exile_Item_CarWheel"; //Same for this as said above.
                player removeAction DeployBike;
                player playMove "AinvPknlMstpSnonWnonDr_medic3";
                sleep 8;
                _posplr = [((getPosAtl player) select 0) + 2, ((getPosAtl player) select 1) + 2, 0];
                _vehicle = createVehicle ["Exile_Bike_QuadBike_Black", _posplr, [], 0, "NONE"];
                _vehicle setDir (getDir player);
                ['Quad Deployed!',0,0.7,2,0] spawn bis_fnc_dynamictext;
            }
        }        
        else
        {
            //Just in case.
            player removeAction DeployBike;
            ['You need the correct materials!',0,0.7,2,0] spawn bis_fnc_dynamictext;
        };

Thanks in advance

Share this post


Link to post
Share on other sites

snip

Edited by GR8

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.