Earthquake script help, frequenct change?

corkingx

Member
ive got this script that let the ground shake and make earthquake sound, but my palyers on my server think it happens to often

what can i change in this script so it is a little less?
Code:
earth = {
playsound "eq";
for "_i" from 0 to 140 do {
_vx = vectorup _this select 0;
_vy = vectorup _this select 1;
_vz = vectorup _this select 2;
_coef = 0.01 - (0.0001 * _i);
_this setvectorup [
_vx+(-_coef+random (2*_coef)),
_vy+(-_coef+random (2*_coef)),
_vz+(-_coef+random (2*_coef))
];
sleep (0.01 + random 0.01);
};
 
};
 
while {true} do {
player spawn earth;
sleep (180 + random 60);
};
 
You can edit it with these line
Code:
sleep (180 + random 60);

so it happens every 180 secs + 60 secs random....

My config is
Code:
sleep (3600 + random 600);

So it happens every hour + - 10 min

Greetings Gang
 
Back
Top