I haven't had the time. It is still planned, but I just started modding again. I had so much work with school and had to put off this and youtube for a while.
Trying to do this, not working D:
if (_isMine) then {
if((random 10) <= 10) then {
_gems = ["ItemTopaz","ItemObsidian"];
_gem = _gems select (floor(random (count _gems)));
_selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
};
};
Still dropping other gems.
init.sqf
//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
progressLoadingScreen 1.0;
custom/compiles.sqf
fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf"; // fnc_usec_selfActions - adds custom actions to dayz code
player_removeObject = compile preprocessFileLineNumbers "dayz_code\actions\player_removeObject.sqf";
if (!isDedicated) then {
player_build = compile preprocessFileLineNumbers "custom\snap_build\player_build.sqf";
player_buildControls = compile preprocessFileLineNumbers "custom\snap_build\player_buildControls.sqf";
snap_object = compile preprocessFileLineNumbers "custom\snap_build\snap_object.sqf";
};