Epoch/Sources/epoch_code/compile/setup/masterLoop/Event4.sqf
vbawol 6f169cff93 0.3.8.0465
Epoch PBO packer 1.0
add playerNuisance variable
a few small optimizations
2016-05-18 11:48:48 -05:00

9 lines
308 B
Plaintext

_nearByBobbersLocal = (player nearEntities[["Bobber_EPOCH"], 12]) select {local _x};
if !(_nearByBobbersLocal isEqualTo []) then {
if ((random 100) < 50) then {
_bobber = selectRandom _nearByBobbersLocal;
_bobber setVelocity [0,-1,-1];
_bobber setVariable ["EPOCH_fishOnLine" , diag_tickTime];
};
};