Jump to content

Hyperific

Pre Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Everything posted by Hyperific

  1. Hi there, I know this is an old post but I'm hoping I can get a lead on the info I'm looking for. Militantsausage, I've been searching around for something you mentioned in the first post but have not been able to find any other uses of it. You said your script includes randomly generated earthquakes. How did you go about scripting that? I'm attempting something similar in Arma 3 but I'm still learning how to script and am admittedly pretty inept. I figured it out. For those who wish to do the same, give this a shot. I created a new file "earthquakes.sqf" and input the following while {alive player} do { quakesoundarray = [playsound "Earthquake_01", playsound "Earthquake_02", playsound "Earthquake_03", playsound "Earthquake_04"]; _random = selectRandom quakesoundarray; enableCamShake true; addCamShake [random 10,30,10]; sleep random 60; } and in your mission's "init.sqf" file paste the following execVM "earthquakes.sqf"; From the mission start until the player dies an earthquake of random intensity will be generated at a random time interval between 0 and 60 seconds. To change the interval between quakes replace the 60 in "sleep random 60" with the desired number of seconds. The quakesoundarray portion creates an array of sounds and names it "quakesoundarray", which is randomly selected from in the next line with the selectRandom function.
×