MasterSnake Posted March 15, 2014 Report Share Posted March 15, 2014 I am using the deploy bike script but need assistance with adding required scrap metal in order to deploy it. Any one have that script with toolbox and scrap metal requirements? Link to comment Share on other sites More sharing options...
0 asremix Posted March 16, 2014 Report Share Posted March 16, 2014 deploy.sqf if (false) then { cutText [format["You are in combat and cannot build a bike."], "PLAIN DOWN"]; } else { player removeAction s_player_deploybike; player playActionNow "Medic"; r_interrupt = false; player removeMagazine "PartGeneric"; player removeMagazine "PartWheel"; _dis=10; _sfx = "repair"; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; [player,_dis,true,(getPosATL player)] spawn player_alertZombies; sleep 6; _object = "Old_bike_TK_INS_EP1" createVehicle (position player); _object setVariable ["ObjectID", "1", true]; _object setVariable ["ObjectUID", "1", true]; player reveal _object; cutText [format["You've built a bike! How magical!"], "PLAIN DOWN"]; r_interrupt = false; player switchMove ""; player playActionNow "stop"; sleep 10; cutText [format["Warning: Spawned bikes DO NOT SAVE after server restart!"], "PLAIN DOWN"]; }; fn_selfActions.sqf weapons = [currentWeapon player] + (weapons player) + (magazines player); _isBike = typeOf cursorTarget in ["Old_bike_TK_INS_EP1","Old_bike_TK_CIV_EP1"];//BIKE DEPLOYif ("ItemToolbox" in _weapons && "PartGeneric" in _mags && "PartWheel" in _mags) then { hasBikeItem = true; } else { hasBikeItem = false;};if((speed player <= 1) && hasBikeItem && _canDo) then {if (s_player_deploybike < 0) then { s_player_deploybike = player addaction[("<t color=""#007ab7"">" + ("Deploy Bike") +"</t>"),"custom\deploys\bike\deploy.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike; s_player_deploybike = -1; }; Link to comment Share on other sites More sharing options...
0 MasterSnake Posted March 20, 2014 Author Report Share Posted March 20, 2014 thx! Link to comment Share on other sites More sharing options...
0 jay8454 Posted March 26, 2014 Report Share Posted March 26, 2014 What would the Allowed CMDMenus look like for this within infiSTAR what is the text? Also the ALLOWED Actions text needs to be too allow the bike to appear how would that be typed ass well? Link to comment Share on other sites More sharing options...
Question
MasterSnake
I am using the deploy bike script but need assistance with adding required scrap metal in order to deploy it.
Any one have that script with toolbox and scrap metal requirements?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now