mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
65e4453908
Major Update. Now supporting DesolationRedux, Epoch and Exile.
28 lines
679 B
Plaintext
28 lines
679 B
Plaintext
/****************************************************************
|
|
File: UPSMON_EjectUnits.sqf
|
|
Author: Azroul13
|
|
|
|
Description:
|
|
Make unit leave the vehicle
|
|
Parameter(s):
|
|
<--- vehicle
|
|
<--- Units
|
|
Returns:
|
|
|
|
****************************************************************/
|
|
private["_transport","_units","_chute"];
|
|
|
|
_transport = _this select 0;
|
|
_units = _this select 1;
|
|
|
|
{
|
|
_x disableCollisionWith _transport;
|
|
unassignVehicle _x;
|
|
_x action ["EJECT", _transport];
|
|
[_x] allowGetIn false;
|
|
sleep 0.25;
|
|
_chute = createVehicle ["NonSteerable_Parachute_F", (getPosATL _x), [], 0, "NONE"];
|
|
_chute setPos (getPosATL _x);
|
|
_x moveinDriver _chute;
|
|
sleep 0.1;
|
|
} forEach _units; |