Skip to content

Instantly share code, notes, and snippets.

@devynspencer
Last active March 16, 2016 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devynspencer/3085f368be96c6118888 to your computer and use it in GitHub Desktop.
Save devynspencer/3085f368be96c6118888 to your computer and use it in GitHub Desktop.
fnc_spawnDropTeam = {
_dropFaction = EAST;
_dropOrigin = [getPos player, floor random [50, 60, 70], floor random 360] call BIS_fnc_relPos;
_dropTarget = [getPos player, 10, floor random 360] call BIS_fnc_relPos;
_dropVehicleClass = ["O_Heli_Transport_04_bench_F"] call BIS_fnc_selectRandom;
_dropVehicleSpawn = [_dropOrigin, _dropOrigin getDir _dropTarget, _dropVehicleClass, _dropFaction] call BIS_fnc_spawnVehicle;
_dropVehicleSpawnGroup = _dropVehicleSpawn select 2;
_dropVehicleSpawnUnit = _dropVehicleSpawn select 0;
_dropGroupSize = 6;
_dropGroup = [_dropOrigin, _dropFaction, _dropGroupSize] call BIS_fnc_spawnGroup;
{ _x moveInCargo _dropVehicleSpawnUnit } foreach units _dropGroup;
_dropWpUnload = _dropVehicleSpawnGroup addWaypoint [_dropTarget, 10];
_dropWpUnload setWaypointType "TR UNLOAD";
_dropWpUnload setWaypointBehavior "CARELESS";
_dropWpUnload setWaypointSpeed "FULL";
};
@devynspencer
Copy link
Author

Air Variations

  • repair team - drop an engineer repair team, ordered to repair vehicles near the landing zone
  • marksmen team - drop a marksman team on an overwatch position
  • sapper team - drop an eod engineering team, ordered to explode nearby vehicles
  • urban defence team - drop onto the roof of a building and begin defending - stairs only? Alternatively, could "place" sandbags on roof
  • objective escort team - drop 2 guards with vip/prisoner NPC and assign player an related objective - friendly only

Ground Variations

  • perimeter team - dismount and begin constructing a watchtower / roadblock within x distance of road.
  • fortification team - dismount and begin constructing portable shooting positions - wood shoot houses
  • traps team - dismount and begin constructing a series of snares, obstacles, and tripwires near an objective

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment