deploy chopper

This commit is contained in:
Fallingsheep1985 2015-02-19 12:05:50 +11:00
parent ff4ea14ac2
commit 6c3cf5548a
3 changed files with 23 additions and 4 deletions

View File

@ -3,7 +3,6 @@
//Special thanks - infistar
if (("ItemScraps" in magazines player)&&("jerrycan_epoch" in magazines player)&&("CircuitParts" in magazines player)&&("VehicleRepair" in magazines player)) then {
if ("ToolKit" in magazines player) then{
player playActionNow "Medic"; // play build animation
sleep 3; //wait 3 seconds
@ -53,8 +52,6 @@
if (!isNil 'EPOCH_server_save_vehicle') then {_vehObj call EPOCH_server_save_vehicle};
if (!isNil 'EPX_server_save_vehicle') then {_vehObj call EPX_server_save_vehicle;};
cutText [format["You built a Chopper."], "PLAIN DOWN"];
} else {
SystemChat "You need a Toolkit to build a Chopper.";
};
} else {
SystemChat "You need Scrap, CircutParts, A Jerrycan and Vehicle Repair items to build a Chopper.";

View File

@ -0,0 +1,12 @@
//Created by - Fallingsheep
//Special thanks - infistar for vehicle spawn code
_target = cursorTarget;
_ischopper = _target typeof "B_Heli_Light_01_EPOCH";
if (_ischopper) then{
deleteVehicle _target;
player addMagazine "ItemScraps";
player addMagazine "VehicleRepair";
player addMagazine "CircuitParts";
player addMagazine "jerrycan_epoch"; // change to empty
SystemChat "You packed the Chopper.";
};

View File

@ -68,5 +68,15 @@ if (("ItemScraps" in magazines player)&&("VehicleRepair" in magazines player)) t
_target = cursorTarget;
_isbike = _target isKindOf "ebike_epoch";
if (_isbike) then{
act = player addaction [("<t color=""#0074E8"">" + ("PackBike") +"</t>"),"deploy\packbike.sqf","",5,false,true,"",""];
act = player addaction [("<t color=""#0074E8"">" + ("Pack Bike") +"</t>"),"deploy\packbike.sqf","",5,false,true,"",""];
};
//BUILD CHOPPER
if (("ItemScraps" in magazines player)&&("jerrycan_epoch" in magazines player)&&("CircuitParts" in magazines player)&&("VehicleRepair" in magazines player)) then {
act = player addaction [("<t color=""#0074E8"">" + ("Build Chopper") +"</t>"),"deploy\deploychopper.sqf","",5,false,true,"",""];
};
//PACK CHOPPER
_target = cursorTarget;
_isbike = _target isKindOf "B_Heli_Light_01_EPOCH";
if (_isbike) then{
act = player addaction [("<t color=""#0074E8"">" + ("Pack Chopper") +"</t>"),"deploy\packchopper.sqf","",5,false,true,"",""];
};