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] call ace_tripod_fnc_handlePlayerChanged
|
|
|
|
*
|
2015-09-26 01:16:55 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_newPlayer", "_oldPlayer"];
|
|
|
|
|
|
|
|
if (_newPlayer getVariable [QGVAR(adjusting), false]) then {
|
|
|
|
_newPlayer setVariable [QGVAR(adjusting), false, true];
|
|
|
|
};
|
|
|
|
|
|
|
|
if (_oldPlayer getVariable [QGVAR(adjusting), false]) then {
|
|
|
|
_oldPlayer setVariable [QGVAR(adjusting), false, true];
|
|
|
|
};
|