Epoch/Sources/epoch_code/compile/environment/EPOCH_client_earthQuake.sqf
2015-09-14 15:55:36 -05:00

15 lines
284 B
Plaintext

_epicenter = _this;
_distance = player distance _epicenter;
_intensity = 1;
if (_distance < 250) then {
_intensity = 4;
} else {
if (_distance < 500) then {
_intensity = 3;
} else {
if (_distance < 750) then {
_intensity = 2;
};
};
};
_intensity spawn BIS_fnc_earthQuake;