Epoch/Sources/epoch_code/compile/environment/EPOCH_client_earthQuake.sqf

15 lines
284 B
Plaintext
Raw Normal View History

2015-09-14 20:55:36 +00:00
_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;