Skip to content

Instantly share code, notes, and snippets.

@headswe
Created January 4, 2016 10:30
Show Gist options
  • Save headswe/962543e0b24b0d04fe71 to your computer and use it in GitHub Desktop.
Save headswe/962543e0b24b0d04fe71 to your computer and use it in GitHub Desktop.
he_deploy_chute = {
private ["_chute","_dir"];
_unit = _this select 0;
_unit setCaptive 1;
_unit allowdamage false;
waitUntil {(position _unit select 2) <= 500};
if (vehicle _unit != _unit) exitWith {};
_chute = createVehicle ["Steerable_Parachute_F", position _unit, [], direction _unit, 'FLY'];
_chute setPos (getPos _unit);
_unit assignAsDriver _chute;
_unit moveIndriver _chute;
waitUntil {isTouchingGround _unit};
_unit allowdamage true;
_unit setCaptive 0;
};
USAGE
put your dude into the air
put this into
if(!isserver) then { [player] execVM he_deploy_chute };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment