Last active
March 16, 2016 03:11
-
-
Save devynspencer/3085f368be96c6118888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Air Variations
Ground Variations