DangerRuss
OpenDayZ Rockstar!
I found this script on this site, idk who the original author is, but Im looking for a way to to reduce the amount of time the player experiences the "shaking" from the earthquake. Id really like the shaking to stop when the sound effect stops.
is that possible?
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 (600 + random 60);
};
is that possible?