can just use array as targets instead of foreach here

This commit is contained in:
vbawol 2017-10-03 08:04:54 -05:00
parent 6c551459a2
commit 70b11bc5a1

View File

@ -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;
}; };
}; };