mirror of
https://github.com/Fallingsheep1985/Arma3Epoch.git
synced 2024-08-30 16:42:12 +00:00
Deploy and pack bike
This commit is contained in:
parent
cee4655681
commit
de59022792
Binary file not shown.
@ -3,14 +3,9 @@
|
|||||||
|
|
||||||
//Script created by Bakler2
|
//Script created by Bakler2
|
||||||
|
|
||||||
cutText [format["You created the Ebike"], "PLAIN DOWN"];
|
if ("ItemScraps" in magazines player) then{
|
||||||
|
if ("ToolKit" in magazines player) then{
|
||||||
player playActionNow "Medic";
|
player removeMagazine "ItemScraps";
|
||||||
|
|
||||||
sleep 3;
|
|
||||||
|
|
||||||
if ("ItemCorrugated" in magazines player) then{
|
|
||||||
player removeMagazine "ItemCorrugated";
|
|
||||||
|
|
||||||
_spawn = "ebike_epoch";
|
_spawn = "ebike_epoch";
|
||||||
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
|
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
|
||||||
@ -22,9 +17,14 @@ _vehObj call EPOCH_server_save_vehicle;
|
|||||||
|
|
||||||
_vehObj call EPOCH_server_setVToken;
|
_vehObj call EPOCH_server_setVToken;
|
||||||
|
|
||||||
sleep 3;
|
|
||||||
|
|
||||||
cutText [format["You've used your Corrugated to build a Ebike."], "PLAIN DOWN"];
|
player playActionNow "Medic";
|
||||||
|
|
||||||
|
sleep 3;
|
||||||
|
cutText [format["You built a Bike."], "PLAIN DOWN"];
|
||||||
} else {
|
} else {
|
||||||
SystemChat "You need one Corrugated to Ebike";
|
SystemChat "You need a Toolkit to build a bike Bike.";
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
SystemChat "You need one Scrap to build a Bike.";
|
||||||
};
|
};
|
6
MPMissions/epoch.Altis/custom/packbike.sqf
Normal file
6
MPMissions/epoch.Altis/custom/packbike.sqf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
_target = cursorTarget;
|
||||||
|
_isbike = _target isKindOf "ebike_epoch";
|
||||||
|
if (_isbike) then{
|
||||||
|
player addaction [("<t color=""#0074E8"">" + ("PackBike") +"</t>"),"custom\packbike2.sqf","",5,false,true,"",""];
|
||||||
|
};
|
6
MPMissions/epoch.Altis/custom/packbike2.sqf
Normal file
6
MPMissions/epoch.Altis/custom/packbike2.sqf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
_target = cursorTarget;
|
||||||
|
_isbike = _target typeof "EBike";
|
||||||
|
if (_isbike) then{
|
||||||
|
deleteVehicle _target;
|
||||||
|
player addMagazine "ItemScraps";
|
||||||
|
};
|
@ -25,7 +25,12 @@ execVM "adminmenu\loop.sqf";
|
|||||||
|
|
||||||
//BIKE
|
//BIKE
|
||||||
act = player addaction [("<t color=""#0074E8"">" + ("Bike") +"</t>"),"custom\Bike.sqf","",5,false,true,"",""];
|
act = player addaction [("<t color=""#0074E8"">" + ("Bike") +"</t>"),"custom\Bike.sqf","",5,false,true,"",""];
|
||||||
|
//Pack BIKE
|
||||||
|
_target = cursorTarget;
|
||||||
|
_isbike = _target isKindOf "ebike_epoch";
|
||||||
|
if (_isbike) then{
|
||||||
|
player addaction [("<t color=""#0074E8"">" + ("PackBike") +"</t>"),"custom\packbike2.sqf","",5,false,true,"",""];
|
||||||
|
};
|
||||||
//Loadouts
|
//Loadouts
|
||||||
[] execVM "custom\loadout.sqf";
|
[] execVM "custom\loadout.sqf";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user