mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
//marc_book, commy2, CAA-Picard
|
|
|
|
private ["_vehicle", "_fnc_smoke", "_fnc_light", "_items", "_count", "_item", "_position", "_parachute", "_smoke", "_light"];
|
|
|
|
_this spawn {
|
|
_vehicle = _this select 0;
|
|
|
|
_fnc_smoke = {
|
|
_smoke = "SmokeshellYellow" createVehicle (_position);
|
|
_smoke attachTo [_item, [0, 0, 0]];
|
|
};
|
|
|
|
_fnc_light = {
|
|
_light = "Chemlight_yellow" createVehicle (_position);
|
|
_light attachTo [_item, [0, 0, 0]];
|
|
};
|
|
|
|
_items = _vehicle getVariable ["AGM_Logistics_loadedItems", []];
|
|
_count = count _items;
|
|
_item = _items select (_count - 1);
|
|
_items = _items - [_item];
|
|
|
|
_vehicle setVariable ["AGM_Logistics_loadedItems", _items, true];
|
|
_position = ((vectorDir _vehicle) vectorMultiply -15) vectorAdd getPosASL _vehicle;
|
|
|
|
detach _item;
|
|
_item setPosASL _position;
|
|
|
|
sleep 0.7;
|
|
|
|
_parachute = createVehicle ["B_Parachute_02_F", position _item, [], 0, "CAN_COLLIDE"];
|
|
_parachute attachTo [_item, [0, 0, 0]];
|
|
|
|
detach _parachute;
|
|
_item attachTo [_parachute, [0, 0, -1]];
|
|
|
|
_light = [] call _fnc_light;
|
|
|
|
waitUntil {sleep 0.1; position _item select 2 < 1};
|
|
detach _item;
|
|
_smoke = [] call _fnc_smoke;
|
|
}; |