I've written up a script that I call in the init field of the Zeus Virtual Entity that will allow all pre-placed objects in a mission as well as any script spawned AI to be controlled by Zeus, but I've run into a problem. For some reason when the script is running, if the Zeus player brings up the map, their A3 client crashes. The script seems to work correctly otherwise, but does anyone have any idea why this script would cause a crash on map open?
{zCurator addCuratorEditableObjects [[_x],true]} foreach (allMissionObjects "");
{zCurator addCuratorEditableObjects [[_x],true]} foreach allMapMarkers;
{zCurator addCuratorEditableObjects [[_x],true]} foreach allGroups;
while {true} do {
sleep 10;
{
if (side _x == west) then
{
zCurator addCuratorEditableObjects [[_x],true];
};
if (side _x == east) then
{
zCurator addCuratorEditableObjects [[_x],true];
};
if (side _x == independent) then
{
zCurator addCuratorEditableObjects [[_x],true];
};
if (side _x == civilian) then
{
zCurator addCuratorEditableObjects [[_x],true];
};
}foreach allUnits;
};
Note: zCurator is the name of my Game Master module.