Also if you want to make sure that the self bloodbag action removes from your scrollmenu edit original command in fn_selfactions.sqf from
To this command in
adding in (r_player_blood < 12000) tell the code if player has full blood to remove the command from the scrollmenu until they have less than 12k blood and the player has a bloodbag in their main gear
I also can confirm this is working for DayZ Mod 1.8
[DayZSO] xDeejayCrazyx
Code:
_mags = magazines player;
// Krixes Self Bloodbag
if ("ItemBloodbag" in _mags) then {
hasBagItem = true;
} else { hasBagItem = false;};
if((speed player <= 1) && hasBagItem && _canDo) then {
if (s_player_selfBloodbag < 0) then {
s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_selfBloodbag;
s_player_selfBloodbag = -1;
};
To this command in
Code:
_mags = magazines player;
// Krixes Self Bloodbag
if ("ItemBloodbag" in _mags) then {
hasBagItem = true;
} else { hasBagItem = false;};
if((speed player <= 1) && hasBagItem && _canDo) then {
if ((s_player_selfBloodbag < 0) && (r_player_blood < 12000)) then {
s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_selfBloodbag;
s_player_selfBloodbag = -1;
};
adding in (r_player_blood < 12000) tell the code if player has full blood to remove the command from the scrollmenu until they have less than 12k blood and the player has a bloodbag in their main gear
I also can confirm this is working for DayZ Mod 1.8
[DayZSO] xDeejayCrazyx