mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
8731bcc8b5
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com> Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
31 lines
662 B
Plaintext
31 lines
662 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2, Smith
|
|
* Handle various interruption types.
|
|
*
|
|
* Arguments:
|
|
* 0: (New) unit <OBJECT>
|
|
* 1: Old unit (for player change) <OBJECT> (default: objNull)
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* player call ace_cargo_fnc_handleDeployInterrupt
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_newPlayer", ["_oldPlayer", objNull]];
|
|
TRACE_2("params",_newPlayer,_oldPlayer);
|
|
|
|
if (!local _newPlayer) exitWith {};
|
|
|
|
if (_newPlayer getVariable [QGVAR(isDeploying), false]) then {
|
|
_newPlayer call FUNC(deployCancel);
|
|
};
|
|
|
|
if (_oldPlayer getVariable [QGVAR(isDeploying), false]) then {
|
|
_oldPlayer call FUNC(deployCancel);
|
|
};
|