Arma 3
jars Jul 15, 2019 @ 5:20pm
Error Type Array, Expected Object
Im trying to add objects to zeus with the add curator command

"curatorObj addCuratorEditableObjects [objects,addCrew]"

According to the wiki, objects is an array, but when I use it, I get an error message saying error type array, expected object.

"_units = units _Group1;
_units append (units _Group2);
_units append (units _Group3);

CuratorModule *addCuratorEditableObjects [[_units], true];"

* - is where the error occurred
Last edited by jars; Jul 15, 2019 @ 5:21pm
< >
Showing 1-5 of 5 comments
Hortzy Jul 15, 2019 @ 7:01pm 
im assuming _units is already returning an array
so u probably dont need to put [] around the _units variable
try it like this
CuratorModule addCuratorEditableObjects [_units, true];

Because as it seems right now your putting an array inside an array
Last edited by Hortzy; Jul 15, 2019 @ 7:05pm
jars Jul 15, 2019 @ 9:26pm 
haha yeah that seemed to be the problem guess im just stupid

thanks man!
Hortzy Jul 15, 2019 @ 9:46pm 
lol it happens dude.
Glad I could help!
jars Jul 15, 2019 @ 11:24pm 
I actually have another question, im trying to make a reinforcement via heli but im getting another error message

_spawn = [getMarkerPos objMarkerMain, 5000, 20000, 0, 0, 0, 0, [Player, 2000], []] call BIS_fnc_findSafePos; // get position to spawn

_helicopter = createVehicle ["0_Heli_Light_02_unarmed_F", _spawn, [], 0, "FLY"]; // spawn heli

_Crew = createVehicleCrew _helicopter; // create crew

_Group = [_spawn, EAST, (configfile >> "CfgGroups" >> "East" >> "OPF_F" >> "Infantry" >> "OIA_InfSquad")] call BIS_fnc_spawnGroup; // spawn group

{_x moveInCargo _helicopter} forEach units _Group; // move group into heli

_units = units _Group;
_units append (units _Crew);

CuratorModule addCuratorEditableObjects [_units, true]; // add units to zeus


heres my code

https://ibb.co/XJXKf0Y

heres the error

i know it has something to do with the _spawn variable, but i added the rest of the script for some context of whats going on
Last edited by jars; Jul 15, 2019 @ 11:25pm
jars Jul 16, 2019 @ 9:34am 
Nevermind, got it all figured out, there was an error for blacklisting an area around the player
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jul 15, 2019 @ 5:20pm
Posts: 5