2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-08-15 16:39:43 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Adds an object to curator upon spawn
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Object <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [object] call ace_zeus_fnc_addObjectToCurator
|
|
|
|
*
|
2015-08-15 16:39:43 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_object"];
|
|
|
|
|
2015-11-30 16:27:09 +00:00
|
|
|
if (!(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitWith {};
|
2015-08-15 16:39:43 +00:00
|
|
|
|
2016-03-30 15:26:33 +00:00
|
|
|
[{
|
|
|
|
TRACE_1("Delayed addCuratorEditableObjects",_this);
|
|
|
|
{
|
|
|
|
_x addCuratorEditableObjects [[_this], true];
|
|
|
|
} forEach allCurators;
|
2016-05-22 13:27:24 +00:00
|
|
|
}, _object] call CBA_fnc_execNextFrame;
|