SHARE
TWEET

bike

a guest Sep 9th, 2013 392 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (dayz_combat == 1) then {
  2.     cutText [format["You are in Combat and cannot build a bike."], "PLAIN DOWN"];
  3. } else {
  4.         player removeAction s_player_deploybike;
  5.         player playActionNow "Medic";
  6.         r_interrupt = false;
  7.         player removeWeapon "ItemToolbox";
  8.         _dis=10;
  9.         _sfx = "repair";
  10.         [player,_sfx,0,false,_dis] call dayz_zombieSpeak;
  11.         [player,_dis,true,(getPosATL player)] spawn player_alertZombies;
  12.        
  13.         sleep 6;
  14.        
  15.         _object = "Old_bike_TK_CIV_EP1" createVehicle (position player);
  16.         _object setVariable ["ObjectID", "1", true];
  17.         _object setVariable ["ObjectUID", "1", true];
  18.        
  19.         _object attachto [player,[0.0,3.0,0.5]];
  20.         sleep 3;
  21.         detach _object;
  22.         player reveal _object;
  23.  
  24.         cutText [format["You've used your toolbox to build a bike."], "PLAIN DOWN"];
  25.        
  26.         r_interrupt = false;
  27.         player switchMove "";
  28.         player playActionNow "stop";
  29.        
  30.         sleep 10;
  31.        
  32.         cutText [format["Warning: Spawned Bikes DO NOT SAVE after server restart!"], "PLAIN DOWN"];
  33.        
  34. };
  35. //bike deploy script by Player2 - OpenDayz Release Coming Soon!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top