mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
can just use array as targets instead of foreach here
This commit is contained in:
parent
6c551459a2
commit
70b11bc5a1
@ -38,9 +38,7 @@ if (!isNull _object && !(_class isEqualTo "")) then {
|
|||||||
|
|
||||||
// force nearby players to reveal new object faster
|
// force nearby players to reveal new object faster
|
||||||
_playersNear = _newObj nearEntities[["Epoch_Male_F", "Epoch_Female_F"], 300];
|
_playersNear = _newObj nearEntities[["Epoch_Male_F", "Epoch_Female_F"], 300];
|
||||||
{
|
[_newObj, {player reveal _this}] remoteExec ["call", _playersNear];
|
||||||
[_newObj, {player reveal _this}] remoteExec ["call", _x];
|
|
||||||
}forEach _playersNear;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user