Jump to content
  • 0

Taking multiple items from player.


Riddlez

Question

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 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...