Only Group Leader can place a Jammer

This commit is contained in:
He-Man 2017-02-10 20:21:32 +01:00 committed by GitHub
parent 061270b5a2
commit 6c08d6835f

View File

@ -130,6 +130,10 @@ if !(_jammer isEqualTo []) then {
};
}
else {
if (!(EPOCH_my_groupUID isequalto "") && !((getplayeruid player) isequalto EPOCH_my_groupUID)) exitwith {
_buildingAllowed = false;
["The Group Leader must place the Jammer!", 5] call Epoch_message;
};
if (_objType in ["PlotPole_EPOCH", "PlotPole_SIM_EPOCH"]) then {
// TODO: rework not ideal to use allmissionobjects
_alljammer = allmissionobjects 'PlotPole_EPOCH';