mirror of
https://github.com/Fallingsheep1985/Arma3Epoch.git
synced 2024-08-30 16:42:12 +00:00
Deploy Bike
This commit is contained in:
parent
8ef9ccd51d
commit
82a47304eb
30
MPMissions/epoch.Altis/custom/bike.sqf
Normal file
30
MPMissions/epoch.Altis/custom/bike.sqf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
//The script://
|
||||||
|
|
||||||
|
|
||||||
|
//Script created by Bakler2
|
||||||
|
|
||||||
|
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"];
|
||||||
|
} else {
|
||||||
|
SystemChat "You need one Corrugated to Ebike";
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user