So I have been trying to install these scripts onto the server 1.0.6 for a number of days now, plugging in the code into the fn_selfactions file where I did with my 1.0.5.1 server, had it working fine on that server, but now I can't get the option to come up. I'm sure it's just something simple that I need to change but I'm stumped. I've gone through the file and checked and seen all the variables defined but I'm sure it's something simple. I'll post what I've added into the fn_selfactions file.
//Bury Body
if (!_isAlive and !_isZombie and !_isAnimal and _hasETool and _isMan and _canDo) then {
if (s_player_bury_human < 0) then {
s_player_bury_human = player addAction [format["Bury Body"], "Mods\BuryBody\bury_human.sqf",cursorTarget, 0, false, true];
}
} else {
player removeAction s_player_bury_human;
s_player_bury_human = -1;
};
//Gut Human
_isHarvested = _cursorTarget getVariable["meatHarvested",false];
if (!_isAlive and !_isZombie and !_isAnimal and !_isHarvested and _isMan and _hasKnife and _canDo) then {
if (s_player_butcher_human < 0) then {
s_player_butcher_human = player addAction [format["Gut Human"], "Mods\Cannibalism\gather_meat_human.sqf",cursorTarget, 0, false, true, "", ""];
};
} else {
player removeAction s_player_butcher_human;
s_player_butcher_human = -1;
};
//Swap Kit
_playerName = name player;
_targetName = _cursorTarget getVariable["bodyName","unknown"];
if (_playerName == _targetName) then {
_playerBody = true;
if (!_isAlive && !_isZombie && !_isAnimal && _isMan && _canDo && _playerBody) then {
if (s_player_swap_human < 0) then {
s_player_swap_human = player addAction [format["<t color='#dddd00'>Swap Kit</t>"], "Mods\SwapKit\swap_kit.sqf",cursorTarget, 0, true, true, "", ""];
};
} else {
player removeAction s_player_swap_human;
s_player_swap_human = -1;
};
};
//Check Wallet
// Check Wallet
if (_player_studybody) then {
if (s_player_studybody < 0) then {
s_player_studybody = player addAction [("<t color=""#FF0000"">"+("Check Wallet") + "</t>"), "Mods\ZSC\actions\check_wallet.sqf",_cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
};
Question
JohnnyBravo666
So I have been trying to install these scripts onto the server 1.0.6 for a number of days now, plugging in the code into the fn_selfactions file where I did with my 1.0.5.1 server, had it working fine on that server, but now I can't get the option to come up. I'm sure it's just something simple that I need to change but I'm stumped. I've gone through the file and checked and seen all the variables defined but I'm sure it's something simple. I'll post what I've added into the fn_selfactions file.
//Bury Body
if (!_isAlive and !_isZombie and !_isAnimal and _hasETool and _isMan and _canDo) then {
if (s_player_bury_human < 0) then {
s_player_bury_human = player addAction [format["Bury Body"], "Mods\BuryBody\bury_human.sqf",cursorTarget, 0, false, true];
}
} else {
player removeAction s_player_bury_human;
s_player_bury_human = -1;
};
//Gut Human
_isHarvested = _cursorTarget getVariable["meatHarvested",false];
if (!_isAlive and !_isZombie and !_isAnimal and !_isHarvested and _isMan and _hasKnife and _canDo) then {
if (s_player_butcher_human < 0) then {
s_player_butcher_human = player addAction [format["Gut Human"], "Mods\Cannibalism\gather_meat_human.sqf",cursorTarget, 0, false, true, "", ""];
};
} else {
player removeAction s_player_butcher_human;
s_player_butcher_human = -1;
};
//Swap Kit
_playerName = name player;
_targetName = _cursorTarget getVariable["bodyName","unknown"];
if (_playerName == _targetName) then {
_playerBody = true;
if (!_isAlive && !_isZombie && !_isAnimal && _isMan && _canDo && _playerBody) then {
if (s_player_swap_human < 0) then {
s_player_swap_human = player addAction [format["<t color='#dddd00'>Swap Kit</t>"], "Mods\SwapKit\swap_kit.sqf",cursorTarget, 0, true, true, "", ""];
};
} else {
player removeAction s_player_swap_human;
s_player_swap_human = -1;
};
};
//Check Wallet
// Check Wallet
if (_player_studybody) then {
if (s_player_studybody < 0) then {
s_player_studybody = player addAction [("<t color=""#FF0000"">"+("Check Wallet") + "</t>"), "Mods\ZSC\actions\check_wallet.sqf",_cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
};
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now