Created
January 4, 2016 10:30
-
-
Save headswe/962543e0b24b0d04fe71 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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