Helicopter Extraction Script
Description
This Scripts spawns helicopters to extract units in the given group.
Features
- Spawns helicopters randomly at given positions
- Helicopters fly to extraction Zone and wait for all units in the given group
- Dynamic helicopter count based on the helicopter type and the ammount of units to extract
- Helicopter(s) will move to the extraction target after units got in
- Callbacks can get passed to the script. They can get executed after spawning, landing at extraction point and landing at extraction target.
Usage
Put the extraction.sqf in your mission folder.
Script arguments:
[group, heli spawnposition, extraction point, extraction target, heli classname, (Option) Landing Mode ,(Optional) Callbacks] execVM "extraction.sqf";
Example:
[group player, (getMarkerPos "HeliSpawn"), (getMarkerPos "ExtractionPoint"), (getMarkerPos "ExtractionTarget"), "B_MH9_F"] execVM "extraction.sqf";
Example (with landing mode):
[group player, (getMarkerPos "HeliSpawn"), (getMarkerPos "ExtractionPoint"), (getMarkerPos "ExtractionTarget"), "B_MH9_F", "GET IN"] execVM "extraction.sqf";
Example (with landing mode and callbacks):
[group player, (getMarkerPos "HeliSpawn"), (getMarkerPos "ExtractionPoint"), (getMarkerPos "ExtractionTarget"), "B_MH9_F", "GET IN", [{ hintSilent "SPAWNED!"; }, { hintSilent "LANDED AT EXTRACTION POINT!"; }, { hintSilent "LANDED AT EXTRACTION TARGET!"; }]] execVM "extraction.sqf";
More details in the script file.
Update 1.1:
I've added ability to pass callbacks to the script which will get executed after:
-Spawning
-Landed at extraction point
-Landed at extraction target
So, anyone can easily customize this script, ex. for ignoring AI.
It is now also possible to change the landing mode (More details in Script file).
Example mission (script test) included.
Video of this script test mission:
http://www.youtube.com/watch?v=ePLI8fUE8GI