Surama 0 Report post Posted December 16, 2013 Allows to develop players at any time the bicycle (presence ToolBox) the Bicycle, after restart he is vanishes! Fo that u need: 1) Mission file(like's pbo file) 2)Notepad(Notepad++) 1st step ------------ Unpack u'r mission pbo, and after that in u'r folder(unpacked mission) creat new folder likes "deploys" and then folder "bike" (likes xxx_mission - deploys - bike...) After that u must creat 2 SQF files in u'r new folder(bike) 1-st file name - deploy.sqf 2-nd file name - pack.sqf ------------- 2nd step in u'r create file deploy.sqf u must put this code: 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 removeWeapon "ItemToolbox"; _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 used your toolbox to build 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"]; }; //bike deploy script by Player2 - OpenDayz Release Coming Soon! - in u'r 2-nd created file pack.sqf put this: if (false) then { cutText [format["You are in combat and cannot re-pack your bike."], "PLAIN DOWN"]; } else { player removeAction s_player_deploybike2; player playActionNow "Medic"; r_interrupt = false; player addWeapon "ItemToolbox"; deletevehicle cursortarget; _dis=10; _sfx = "repair"; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; [player,_dis,true,(getPosATL player)] spawn player_alertZombies; sleep 6; cutText [format["You have packed your bike and been given back your toolbox"], "PLAIN DOWN"]; r_interrupt = false; player switchMove ""; player playActionNow "stop"; }; 3d step ------------------- Then we go to mission folder and we find the file fn_selfActions.sqf (if u not have this file in y'r mission u need to find it in servers file and put it into u'r mission folder [this tuto is based on that that you already have this file(likes fn_selfActions.sqf) in your mission pbo] - in fn_selfActions.sqf u must add this code: //BIKE DEPLOY if ("ItemToolbox" in _weapons) then { hasBikeItem = true; } else { hasBikeItem = false;}; if((speed player <= 1) && hasBikeItem && _canDo) then { if (s_player_deploybike < 0) then { s_player_deploybike = player addaction[("" + ("Deploy Bike") +""),"deploys\bike\deploy.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike; s_player_deploybike = -1; }; //PACK BIKE if((_isBike) and _canDo) then { if (s_player_deploybike2 < 0) then { s_player_deploybike2 = player addaction[("" + ("Re-Pack Bike") +""),"deploys\bike\pack.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike2; s_player_deploybike2 = -1; }; Everything is ready! Now we pack back the file mission and we fill in on the server! Now having ToolBox you can collect the bike, having twisted a castor on a mouse and to find the menu Deploy bike! Quote Share this post Link to post Share on other sites More sharing options...
Surama 0 Report post Posted December 16, 2013 Allows to develop players at any time the bicycle (presence ToolBox) the Bicycle, after restart he is vanishes! Fo that u need: 1) Mission file(like's pbo file) 2)Notepad(Notepad++) 1st step ------------ Unpack u'r mission pbo, and after that in u'r folder(unpacked mission) creat new folder likes "deploys" and then folder "bike" (likes xxx_mission - deploys - bike...) After that u must creat 2 SQF files in u'r new folder(bike) 1-st file name - deploy.sqf 2-nd file name - pack.sqf ------------- 2nd step in u'r create file deploy.sqf u must put this code: 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 removeWeapon "ItemToolbox"; _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 used your toolbox to build 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"]; }; //bike deploy script by Player2 - OpenDayz Release Coming Soon! - in u'r 2-nd created file pack.sqf put this: if (false) then { cutText [format["You are in combat and cannot re-pack your bike."], "PLAIN DOWN"]; } else { player removeAction s_player_deploybike2; player playActionNow "Medic"; r_interrupt = false; player addWeapon "ItemToolbox"; deletevehicle cursortarget; _dis=10; _sfx = "repair"; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; [player,_dis,true,(getPosATL player)] spawn player_alertZombies; sleep 6; cutText [format["You have packed your bike and been given back your toolbox"], "PLAIN DOWN"]; r_interrupt = false; player switchMove ""; player playActionNow "stop"; }; 3d step ------------------- Then we go to mission folder and we find the file fn_selfActions.sqf (if u not have this file in y'r mission u need to find it in servers file and put it into u'r mission folder [this tuto is based on that that you already have this file(likes fn_selfActions.sqf) in your mission pbo] - in fn_selfActions.sqf u must add this code: //BIKE DEPLOY if ("ItemToolbox" in _weapons) then { hasBikeItem = true; } else { hasBikeItem = false;}; if((speed player <= 1) && hasBikeItem && _canDo) then { if (s_player_deploybike < 0) then { s_player_deploybike = player addaction[("" + ("Deploy Bike") +""),"deploys\bike\deploy.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike; s_player_deploybike = -1; }; //PACK BIKE if((_isBike) and _canDo) then { if (s_player_deploybike2 < 0) then { s_player_deploybike2 = player addaction[("" + ("Re-Pack Bike") +""),"deploys\bike\pack.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike2; s_player_deploybike2 = -1; }; Everything is ready! Now we pack back the file mission and we fill in on the server! Now having ToolBox you can collect the bike, having twisted a castor on a mouse and to find the menu Deploy bike! Quote Share this post Link to post Share on other sites More sharing options...
TBAGnSTUFF 0 Report post Posted May 28, 2014 Where do i find fn_selfActions.sqf??? Quote Share this post Link to post Share on other sites More sharing options...
TBAGnSTUFF 0 Report post Posted May 28, 2014 Where do i find fn_selfActions.sqf??? Quote Share this post Link to post Share on other sites More sharing options...
Jun1997 0 Report post Posted June 21, 2014 big thing to say you need to override your complies to the custom selfactions and you can find them in the dayz code under the @Dayz_Epoch Quote Share this post Link to post Share on other sites More sharing options...
Jun1997 0 Report post Posted June 21, 2014 big thing to say you need to override your complies to the custom selfactions and you can find them in the dayz code under the @Dayz_Epoch Quote Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.