Author: kennux
Author Website: http://www.kennux.net/blog/

Requirements:

Version: 1.1

Short description: This Scripts spawns helicopters to extract units in the given group.

Date: 2013-08-06 06:15


Comments: (2)
Rating:



 

Helicopter Extraction Script

by
kennux


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.


Media:



Changelog:
v1.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
- It is now also possible to change the landing mode (More details in Script file).


Forum topic:
- Armaholic forums




Enable javascript to be able to download from Armaholic please!



Tags: Extraction,   Helicopter,   Spawn