/* * Author: commy2 * * Called from respawn eventhandler. Resets all public object namespace variables that are added via FUNC(setVariableJIP). * * Argument: * 0: Object (Object) * * Return value: * Nothing. */ #include "script_component.hpp" private "_respawnVariables"; PARAMS_1(_unit); _respawnVariables = _unit getVariable ["ACE_respawnVariables", []]; // yes those _respawnVariables pushBack "ACE_PersistentFunctions"; { _unit setVariable [_x, _unit getVariable _x, true]; } forEach _respawnVariables;