Jump to content

New Earthquake Script For Arma 2/Arma 2 OA/Dayz Epoch.


Perish

Recommended Posts

Hey guys want to add a cool eartquake script to your server just see below.

 

1. open notepad++ or whatever text editor you use

2. create new text file.

#. Copy And Paste The Following Text Below.

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);
};

};

$. Save As eartquake.sqf and save.

%. Place earthquake script in to your mission pbo

&. Open your init file and add the following to the bottom and then save.

null = [] execVM "earthquake.sqf";

while {true} do {
player spawn earth;
sleep (180 + random 60);
: thanks guys enjoy

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...