icdb icon

[ArmA3] Dataterminal with animation

icdb | PRO | 12/21/17 04:08:30 PM UTC | 0 ⭐ | 521 👁️ | Never ⏰ | []
SQF |

1.04 KB

|

None

|

0 👍

/

0 👎

_target = (_this select 1);
_title = "Interact with terminal";
_idleIcon = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa";
_progressIcon = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa";
_condShow = "_this distance _target < 3";
_condProgress = "_caller distance _target < 3";
_codeStart = {
    _caller setPos (_target getRelPos [0.70, 175]);
    _caller setDir (getDir _target);
    _caller switchMove "Acts_TerminalOpen";
    sleep 1;
    [_target, 3] call BIS_fnc_DataTerminalAnimate;
};
_codeProgress = {};
_codeCompleted = {
    [_target, 0] call BIS_fnc_DataTerminalAnimate;
    _caller switchMove "";
};
_codeInterupted = {
    [_target, 0] call BIS_fnc_DataTerminalAnimate; 
    _caller switchMove "";
};
_arguments = [];
_duration = 5;
_priority = 10;
_removeCompleted = false;
_showUncon = false;
 
[_target,_title,_idleIcon,_progressIcon,_condShow,_condProgress,_codeStart,_codeProgress,_codeCompleted,_codeInterupted,_arguments,_duration,_priority,_removeCompleted,_showUncon] remoteExec ["BIS_fnc_holdActionAdd",0,true];

Comments