Epoch/Sources/epoch_code/compile/setup/masterLoop/Event4.sqf

16 lines
427 B
Plaintext
Raw Normal View History

2016-01-15 19:22:40 +00:00
_nearByBobbersLocal = [];
_nearByBobbers = player nearEntities[["Bobber_EPOCH"], 12];
{
if (local _x) then {
_nearByBobbersLocal pushBack _x
}
} forEach _nearByBobbers;
2015-11-08 15:26:38 +00:00
2016-01-15 19:22:40 +00:00
if !(_nearByBobbersLocal isEqualTo []) then {
if ((random 100) < 50) then {
_bobber = _nearByBobbersLocal select floor(random(count _nearByBobbers));
_bobber setVelocity [0,-1,-1];
_bobber setVariable ["EPOCH_fishOnLine" , diag_tickTime];
};
};