ACE3/addons/zeus/functions/fnc_addObjectToCurator.sqf

28 lines
535 B
Plaintext
Raw Normal View History

#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
*
* Example:
* [object] call ace_zeus_fnc_addObjectToCurator
*
2015-08-15 16:39:43 +00:00
* Public: No
*/
params ["_object"];
if !(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)]) exitWith {};
2015-08-15 16:39:43 +00:00
[{
TRACE_1("Delayed addCuratorEditableObjects",_this);
{
_x addCuratorEditableObjects [[_this], true];
} forEach allCurators;
}, _object] call CBA_fnc_execNextFrame;