mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update EPOCH_isBuildAllowed.sqf
Only the Group Leader can place a Jammer
This commit is contained in:
parent
6c08d6835f
commit
1816c9755f
@ -130,11 +130,11 @@ 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 {
|
||||
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;
|
||||
};
|
||||
// TODO: rework not ideal to use allmissionobjects
|
||||
_alljammer = allmissionobjects 'PlotPole_EPOCH';
|
||||
_c = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user