mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
e7bc2e9d62
commit
7f07d4e4b8
@ -57,13 +57,16 @@ _newItem setVelocity ((velocity _vehicle) vectorAdd ((vectorNormalized (vectorDi
|
|||||||
|
|
||||||
if (isNull _item || {getPos _item select 2 < 1}) exitWith {};
|
if (isNull _item || {getPos _item select 2 < 1}) exitWith {};
|
||||||
|
|
||||||
private _itemPosASL = getPosASL _item;
|
|
||||||
private _itemVelocity = velocity _item;
|
|
||||||
private _parachute = createVehicle ["B_Parachute_02_F", [0,0,0], [], 0, "CAN_COLLIDE"];
|
private _parachute = createVehicle ["B_Parachute_02_F", [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||||
|
|
||||||
_item attachTo [_parachute, [0,0,0.2]];
|
// cannot use setPos on parachutes without them closing down
|
||||||
_parachute setPosASL _itemPosASL;
|
_parachute attachTo [_item, [0,0,0]];
|
||||||
_parachute setVelocity _itemVelocity;
|
detach _parachute;
|
||||||
|
|
||||||
|
private _velocity = velocity _item;
|
||||||
|
|
||||||
|
_item attachTo [_parachute, [0,0,-1]];
|
||||||
|
_parachute setVelocity _velocity;
|
||||||
|
|
||||||
private _light = "Chemlight_yellow" createVehicle [0,0,0];
|
private _light = "Chemlight_yellow" createVehicle [0,0,0];
|
||||||
_light attachTo [_item, [0,0,0]];
|
_light attachTo [_item, [0,0,0]];
|
||||||
|
Loading…
Reference in New Issue
Block a user