Dread's Heli Crash Script (slash) Random Helicopter Flyovers
Release for Arma 3
Stable in: 1.34.128075 (and probably on)
Version: 1.0 (fully completed unlike my other stuff)
Hey guys!
I just finished writing this script for my first Arma 3 mission, Aftermath. I wanted to share it with you all, because I haven't seen many scripts like this floating around the forum. This script will add randomly-selected, randomly-created helicopters in your mission. They will fly over the player, and even have a chance of exploding, dropping their contents everywhere like a piñata (not quite). Unfortunately, this script is not about focusing on the loot-creation possibilities of helicopter crashes, bfortunately, I have included a small test script I made which randomly creates some boxes around the crashed helicopters, edit away.
To Use:
Using the scripts is simple. Just download them (further down the page) and in your init.sqf put:
[player] execVM "DE_spawnHelicopterFlyover.sqf"
There are 4 other parameters, however, they are optional. Full usage instructions:
/*
USAGE: _handle = [P1, P2, P3, P4, P5] execVM "DE_spawnHelicopterFlyover.sqf";
_handle: Not Required
P1: OBJECT - The object you want the helicopters to fly over.
P2: NUMBER (Optional) - The time (in minutes) in between each helicopter spawn chance.
P3: NUMBER (Optional) - The variation (in minutes) for each spawn chance. For example, with a timer of 10 with a variation of 2, heli chance would be in 8-12 minutes.
P4: NUMBER (Optional) - Chance for a helicopter to fly over each cycle. (0 is never, 1 is always)
P5: NUMBER (Optional) - Chance for a helicopter flying over to suffer from a critial malfunction and crash. (0 is never, 1 is always)
EXAMPLE: 0 = [player] execVM "DE_spawnHelicopterFlyover.sqf";
Helicopter and shootdown frequency are default values.
0 = [player, 10, 4, 0.2, 0.6] execVM "DE_spawnHelicopterFlyover.sqf";
Helicopters will fly around player, every 10 minutes with a variation of 4, 20% chance to spawn each cycle, 60% chance to crash.
*/
Modification:
Be default, only 2 helicopters are in the script. You will need to add the helicopters you want to be spawned yourself by changing the _helicopters array. Add as many as you want, it will not break the script. The format of this array is:
_helicopters = [["helicopter_classname1", amountOfBoxes],["helicopter_classname2", amountOfBoxes],["helicopter_classname3", amountOfBoxes],etc];
One small trick: To increase the chance of a certain helicopter spawning, add it multiple times to the array.
Multiplayer:
No. Sorry. This script was designed for Single Player use in mind, you will have to make some major edits. Well, technically it could work in multiplayer (some parts of it, anyway), but I wouldn't be happy with the result and neither would you, probably.
Known Issues:
At this time, there are no known issues. (finally)
Complimentary Video:
Download (Dropbox)
All persons are free to use and modify these scripts to fit their needs, provided the original credit remains intact or I am credited somewhere in the modified script.