Files
braf/braf_sar/Braf_Scripts/hoist_up.sqf
T

15 lines
424 B
Plaintext

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