So im trying to spawn in a mozzie through maca's right click options via toolbox, That all works fine...
I've found a script posted by Player 2 on opendayz, which works through the scroll menu.
How can i modify the 'deploymozzie.sqf' file so it uses 1 x scrap and 1 x Engine parts through right click options?
My skills are very limited with this so ELI5!
//////////////////////////////This is from what is ment to go into selfactions
if ("ItemToolbox" in _weapons && "PartGeneric" in _mags && "PartEngine" in _mags) then {
hasMozzieItem = true;
} else { hasMozzieItem = false;};
if((speed player <= 1) && hasMozzieItem && _canDo) then {
////////////////////////////
//Deploymozzie.sqf
if (false) then {
cutText [format["You are in combat and cannot build a Mozzie."], "PLAIN DOWN"];
} else {
player removeAction s_player_deploymozzie;
player playActionNow "Medic";
r_interrupt = false;
player removeMagazine "PartGeneric";
player removeMagazine "PartEngine";
_dis=10;
_sfx = "repair";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
sleep 6;
_object = "CSJ_GyroC" createVehicle (position player);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];
player reveal _object;
cutText [format["Mozzie Built"], "PLAIN DOWN"];
r_interrupt = false;
player switchMove "";
player playActionNow "stop";
sleep 10;
cutText [format["Deployed vehicles disappear on restart!"], "PLAIN DOWN"];
};