mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
542 B
Plaintext
26 lines
542 B
Plaintext
/*
|
|
* 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 ["_unit", "_respawnVariables"];
|
|
|
|
_unit = _this select 0;
|
|
|
|
_respawnVariables = _unit getVariable ["ACE_respawnVariables", []];
|
|
|
|
// yes those
|
|
_respawnVariables pushBack "ACE_PersistentFunctions";
|
|
|
|
{
|
|
_unit setVariable [_x, _unit getVariable _x, true];
|
|
} forEach _respawnVariables;
|