2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
2015-01-11 18:20:14 +00:00
|
|
|
* Called from respawn eventhandler. Resets all public object namespace variables that are added via FUNC(setVariableJIP).
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2015-09-19 17:40:56 +00:00
|
|
|
* Arguments:
|
|
|
|
* 0: Object <OBJECT>
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
2015-09-19 17:40:56 +00:00
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ace_common_fnc_restoreVariablesJIP
|
|
|
|
*
|
2015-09-19 17:40:56 +00:00
|
|
|
* Public: No
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
|
|
|
|
2015-09-19 17:40:56 +00:00
|
|
|
params ["_unit"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-12-14 12:08:19 +00:00
|
|
|
private _respawnVariables = _unit getVariable ["ACE_respawnVariables", []];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
// yes those
|
2015-01-12 04:02:33 +00:00
|
|
|
_respawnVariables pushBack "ACE_PersistentFunctions";
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
{
|
2015-05-14 18:06:06 +00:00
|
|
|
_unit setVariable [_x, _unit getVariable _x, true];
|
2015-09-19 17:40:56 +00:00
|
|
|
false
|
|
|
|
} count _respawnVariables;
|
|
|
|
nil
|