I was wondering could I add a line to my "smokeshit.sqf" (many thanks to FragZ for the tutorial) so when I use the kilo of hemp I also call to the painkiller.sqf?
/* by: ZeroK00L */ [] spawn { hint "You roll a fatty and smoke it! Damn! That shit is the chronic!"; player removeMagazine 'ItemKiloHemp'; _id = [0,0,0,[player]] execVM "\z\addons\dayz_code\medical\painkiller.sqf"; Remove_Drug_effects = { { ppEffectDestroy _x; } forEach (_this select 0); ppEffectDestroy ppe2; ppEffectDestroy ppe3; setaperture 0; }; _time = time; _effects = []; while {true} do { ppe2 = ppEffectCreate ["chromAberration", 1555]; _effects = _effects + [ppe2]; ppe2 ppEffectAdjust [random 0.25,random 0.25,true]; ppe2 ppEffectCommit 1; ppe2 ppEffectEnable true; ppe3 = ppEffectCreate ["radialBlur", 1555]; _effects = _effects + [ppe3]; ppe3 ppEffectEnable true; ppe3 ppEffectAdjust [random 0.02,random 0.02,0.15,0.15]; ppe3 ppEffectCommit 1; sleep random(1); if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;}; }; };
Would "_id = [0,0,0,[player]] execVM "\z\addons\dayz_code\medical\painkiller.sqf" work?