ACE3/addons/zeus/functions/fnc_addObjectToCurator.sqf
Mike-MF 1c6c4d6bff
All - Fix parentheses around code (#10073)
* Fix Brackets around code

* Update fnc_handleFired.sqf

* Shouldn't have changed this one

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-06-18 14:08:03 +00:00

28 lines
535 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Adds an object to curator upon spawn
*
* Arguments:
* Object <OBJECT>
*
* Return Value:
* None
*
* Example:
* [object] call ace_zeus_fnc_addObjectToCurator
*
* Public: No
*/
params ["_object"];
if !(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)]) exitWith {};
[{
TRACE_1("Delayed addCuratorEditableObjects",_this);
{
_x addCuratorEditableObjects [[_this], true];
} forEach allCurators;
}, _object] call CBA_fnc_execNextFrame;