Epoch/Sources/epoch_code/compile/setup/masterLoop/Event4.sqf
vbawol 6a01291440 0.3.9.0546
add server invoked looting text based feedback
2016-06-29 13:35:37 -05:00

9 lines
309 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,-10];
_bobber setVariable ["EPOCH_fishOnLine" , diag_tickTime];
};
};