Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Script by HALV
- usage: parse varibles to the script, example below will Detatch suppressor from mk17 and will:
- require toolbox and scrap metal, remove scrap, but leave toolbox
- ["weapon2change", "toolneeded", "magazineadded"(""=nothing), "tooladded"(""=nothing), "outputweapon", "Text"]
- ["SCAR_H_CQC_CCO", "ItemToolbox", "PartGeneric", "", "SCAR_H_CQC_CCO_SD", "Suppressor Detatched"]
- */
- _weapon = _this select 0;
- _toolitem = _this select 1;
- _magitem = _this select 2;
- _tooloutput = _this select 3;
- _weapoutput = _this select 4;
- _string = _this select 5;
- if(_toolitem !="" and !(player hasWeapon _toolitem))exitwith{
- _txt1 = (gettext (configFile >> 'cfgweapons' >> _toolitem >> 'displayName'));
- titleText [format["You need %1 for this",_txt1], "PLAIN DOWN"]; titleFadeOut 5;
- };
- if(_tooloutput !="" and (player hasWeapon _tooloutput))exitwith{
- _txt1 = (gettext (configFile >> 'cfgweapons' >> _tooloutput >> 'displayName'));
- titleText [format["You already have %1",_txt1], "PLAIN DOWN"]; titleFadeOut 5;
- };
- closeDialog 0;
- player playActionNow "Medic";
- [player,"repair",0,false,10] call dayz_zombieSpeak;
- [player,10,true,(getPosATL player)] spawn player_alertZombies;
- sleep 2;
- player removeWeapon _weapon;
- sleep 2;
- if(_magitem !="")then{
- player addMagazine _magitem;
- };
- if(_tooloutput !="")then{
- player addWeapon _tooloutput;
- };
- player addWeapon _weapoutput;
- sleep 1;
- player selectWeapon _weapoutput;
- titleText [format["%1",_string], "PLAIN DOWN"]; titleFadeOut 5;
Advertisement
Add Comment
Please, Sign In to add comment