SINGLE SCRIPT/SINGLE TRIGGER DYNAMIC AIR TRANSPORT
This script will provide the player with air evac/transport to his location to go wherever he wants using 1 radio channel.
(Credit to snYpir for his "Chopperwait" snippet, which allows this script to work for groups.)
4 objects and 1 trigger (and the script) are all that is needed:
Objects: (unitnames can be changed)
1.Player
2.Chopper (not empty)
3. H-pad1 (base/start point for chopper)
4. H-pad2 (invisible)
Trigger:
Activation on: Radio Alpha (must use channel alpha)
Set to: Repeatedly
On Activation: in this order (use any names u want)
[playername,choppername,h-pad1 name,h-pad2 name] exec "DAT.sqs"
If you want you can set the triggertext to "pickup", but not necessary as the script will control the triggertext after running once.
Features:
-Chopper comes to your location for pickup
-Chopper gives player "estimated time of arrival" and status update at travel-halfway point
-Player designates drop-off location by clicking map
-Chopper returns to base, lands (engines off) and refuels/repairs as needed.
What it does:
When Radio Alpha is called, chopper will take off from start position (presumably a friendly base) and fly to and land at players location. Chopper will wait until player (and any other units in players group) board(s) the chopper.
After player boards, chopper will lift off and join Player's group. Now player can order chopper to move to any location using the map. Give the move order and the chopper will move to the specified location.
At any time while player is in the chopper, you can call for a drop-off by again hitting Radio Alpha. Chopper will leave player's group, land and wait until all units are out.
When all units are out, chopper will return to base/start position, land and power down.
Repeat as needed.
If chopper is destroyed during the mission, you wont receive the bad news until you request another airlift.
The only drawback is, you can only have 11 units (including you)in your group if you intend to use this, as well as this:
If your units are spread all over hell-and-gone when you call the chopper, you better get them all to your location as the chopper wont leave until every group member is aboard.
Also, when calling for pickup, you are specifying the area approx 20 meters around you. Probably shouldnt be on a cliff-side
.
If this is nothing new,let me know, but i havent seen one like it before.
Otherwise, let me know what changes need to be made and about any bugs you find, and/ or if its any use to anyone. I dont play in MP, so i have no idea about how it works there. Please post suggestions for improvements / enhancements etc.
Firstflash