ACE3/addons/zeus/functions/fnc_addObjectToCurator.sqf

25 lines
390 B
Plaintext
Raw Normal View History

2015-08-15 16:39:43 +00:00
/*
* Author: Glowbal
* Adds an object to curator upon spawn
*
* Arguments:
* Object <OBJECT>
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
2015-11-30 16:14:05 +00:00
if (!isServer) exitWith {};
2015-08-15 16:39:43 +00:00
params ["_object"];
if (!(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitWith {};
2015-08-15 16:39:43 +00:00
{
_x addCuratorEditableObjects [[_object], true];
2015-11-30 16:23:48 +00:00
}forEach allCurators;