35 lines
1.0 KiB
Plaintext
Executable File
35 lines
1.0 KiB
Plaintext
Executable File
_itemsPlayer = items player;
|
|
_hasToolbox = "ItemToolbox" in _itemsPlayer;
|
|
if !(_hasToolbox) exitWith {cutText [format["You need a tool box to create a bike"], "PLAIN DOWN"];};
|
|
if (dayz_combat == 1) 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_CIV_EP1" createVehicle (position player);
|
|
_object setVariable ["MalSar",1,true];
|
|
_object attachto [player,[0.0,3.0,0.5]];
|
|
sleep 3;
|
|
detach _object;
|
|
player reveal _object;
|
|
|
|
cutText [format["You've used your toolbox to build a bike."], "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"];
|
|
|
|
}; |