2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-09-26 01:16:55 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Handle player changes.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: New Player Unit <OBJECT>
|
|
|
|
* 1: Old Player Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob, kevin] call ace_sandbag_fnc_handlePlayerChanged
|
|
|
|
*
|
2015-09-26 01:16:55 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_newPlayer", "_oldPlayer"];
|
|
|
|
|
|
|
|
if (_newPlayer getVariable [QGVAR(isDeploying), false]) then {
|
|
|
|
[_newPlayer] call FUNC(deployCancel);
|
|
|
|
};
|
|
|
|
|
|
|
|
if (_oldPlayer getVariable [QGVAR(isDeploying), false]) then {
|
|
|
|
[_oldPlayer] call FUNC(deployCancel);
|
|
|
|
};
|