if ("ItemCorrugatedLg" in magazines player) then{
player removeMagazine "ItemCorrugatedLg";
player playActionNow "Medic";
sleep 3;
_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 Large Scrap Metal to build a eBike."], "PLAIN DOWN"];
} else {
cutText [format["You do not have the Large Salvage Metal required to do this."], "PLAIN DOWN"];
};
How can i make this take more than one item and multiples of a item eg. 10 small metal and 5 electronic components
Question
Riddlez
How can i make this take more than one item and multiples of a item eg. 10 small metal and 5 electronic components
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now