mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
390 B
Plaintext
25 lines
390 B
Plaintext
|
/*
|
||
|
* Author: Glowbal
|
||
|
* Adds an object to curator upon spawn
|
||
|
*
|
||
|
* Arguments:
|
||
|
* Object <OBJECT>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
if (!isServer) exitwith {};
|
||
|
|
||
|
params ["_object"];
|
||
|
|
||
|
if (!(_object getvariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitwith {};
|
||
|
|
||
|
{
|
||
|
_x addCuratorEditableObjects [[_object], true];
|
||
|
}foreach allCurators;
|