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.
@ -2,29 +2,29 @@
|
||||
|
||||
|
||||
//Script created by Bakler2
|
||||
|
||||
if ("ItemScraps" in magazines player) then{
|
||||
if ("ToolKit" in magazines player) then{
|
||||
player removeMagazine "ItemScraps";
|
||||
|
||||
_spawn = "ebike_epoch";
|
||||
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
|
||||
_saveVehicle call EPOCH_server_save_vehicle;
|
||||
_dirplr = getDir player;
|
||||
_spwnveh = _spawn createVehicle (_posplr);
|
||||
_spwnveh setVariable ["Sarge",1,true];
|
||||
_vehObj call EPOCH_server_save_vehicle;
|
||||
|
||||
_vehObj call EPOCH_server_setVToken;
|
||||
|
||||
|
||||
cutText [format["You created the Ebike"], "PLAIN DOWN"];
|
||||
|
||||
player playActionNow "Medic";
|
||||
|
||||
sleep 3;
|
||||
|
||||
if ("ItemCorrugated" in magazines player) then{
|
||||
player removeMagazine "ItemCorrugated";
|
||||
|
||||
_spawn = "ebike_epoch";
|
||||
_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
|
||||
_saveVehicle call EPOCH_server_save_vehicle;
|
||||
_dirplr = getDir player;
|
||||
_spwnveh = _spawn createVehicle (_posplr);
|
||||
_spwnveh setVariable ["Sarge",1,true];
|
||||
_vehObj call EPOCH_server_save_vehicle;
|
||||
|
||||
_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 {
|
||||
SystemChat "You need a Toolkit to build a bike Bike.";
|
||||
};
|
||||
} else {
|
||||
SystemChat "You need one Corrugated to Ebike";
|
||||
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
|
||||
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
|
||||
[] execVM "custom\loadout.sqf";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user