Arma3 - Helicopter Pickup and Dropoff

From ScottWiki
Jump to navigation Jump to search

This will bring in a Helicopter to pick up all players, take off when all players are on-board and then drop them off at a new location and "dust off" when all players have exited the chopper. The pilot cannot be killed and the Co-pilot controls are disabled. (So the players cannot hijack the ride.) This is for 5 players, variable names are

Viper1
Viper2
Viper3
Viper4
Viper5

Drop a helicopter and give it a variable name. We will also lockout the driver and co-pilot controls.

Variable:

Hotel_1

Init:

this lockDriver true;
this enablecopilot false;

Delete the co-pilot (if not required) And change the Pilot to give them a name and set so they are invulnerable.

Variable:

Hotel_1P

Init:

this allowDamage false;

Now we plot the helicopters path...

Waypoints:

Move Waypoint: (assign a trigger to activate this one so the helicopter starts the pickup when required
Load Place on a Helipad (Invisible or View-able, )
  Activation: Hotel_1 land "land"; 
Move Waypoint: Place this right next to the Previous Load WP
  Condition: 
  ({!(alive _x) || _x in Hotel_1} count (units Viper)) == count (units Viper)  <--- This checks all members of unit Viper are in Hotel_1 (works in both SP and MP)
  Activation: 
  Hotel_1P vehicleChat "All loaded, prepare for takeoff";

Load Waypoint: Place on a Helipad (Invisible or View-able, )
  Activation: 
  Hotel_1 land "land"; 


Move Waypoint: (Place next to previous LOAD WP)
  Condition: 
  ({!(alive _x) || _x in Hotel_1} count (units Viper)) == 0     <--- This checks all members of unit Viper are not in Hotel_1 (works in both SP and MP)
  Activation:
  Hotel_1P sideChat "All Exited the Chopper, Off to the next Waypoint";