15 lines
420 B
Plaintext
15 lines
420 B
Plaintext
// Declaracao de variaveis:
|
|
params ["_heli"];
|
|
|
|
private _rope = _heli getVariable ["hoistrope", objNull];
|
|
|
|
if (isNull _rope) exitWith {};
|
|
|
|
private _targetLength = 25;
|
|
private _duration = 16;
|
|
private _currentLength = ropeLength _rope;
|
|
private _speed = ((_targetLength - _currentLength) max 0.01) / _duration;
|
|
|
|
// Extensao do cabo com duracao alinhada ao audio do guincho.
|
|
ropeUnwind [_rope, _speed, _targetLength, false];
|