Member
Last active 7 years ago
Just out of curiosity, has there been an update in the features of ALiVE that might have enabled this option as of today? Does the virtual AI now have the capability to capture sectors?
Hello,
The idea is to have the Virtual AI to be taking over sector control zones on a map, which are tied to respawnsectors. The zones are set up at objective points where the AI goes to automatically, tasked by OpCom, but it's annoying seeing nothing change outside of the spawn range of the player, even though they're at the capture spot.
Who here has any idea how we can get virtual AI to trigger a capture zone? Using the codesnippet:
((count ([getposATL thisTrigger, 50, ["EAST","entity"]] call ALIVE_fnc_getNearProfiles)) >= 3) || ((count ([getposATL thisTrigger, 50, ["WEST","entity"]] call ALIVE_fnc_getNearProfiles)) >= 3);
in a trigger works fine to detect them, but they do not set off the sector control to change, based on positioning, even when synced to the Sector Control zone. It does work with spawned units, which makes me think it (arma) does not see the virtual units.
@Whigital My bad, made some last minute changes and didnt try it.
Change line 32
params ["_interval", 30];
toparams [["_interval", 30]];
and it should be fine.
Works like a treat, you da man!
Yeah, that fixes the errors, but;
3:06:54 Error in expression <Distributor = [_check_interval] spawn { params ["_interval", 30]; private ["_cu> 3:06:54 Error position: <params ["_interval", 30]; private ["_cu> 3:06:54 Error Type Number, expected Array,String 3:06:54 File mpmissions\__cur_mp.Kunduz\scripts\HC_distributor.sqf, line 32 3:07:02 Error in expression <Distributor = [_check_interval] spawn { params ["_interval", 30]; private ["_cu>
@Whigital, correct. As soon as i remove it, i'm not seeing any of that anymore.
The sys_stats does pop up when first connecting the HC's, but w/o the script, it's all fine. I can run it once and post you an RPT if you like?
@Whigital commented those lines out:
19:52:05 ["SYS_STATS: PLAYER UNIT NOT FOUND IN PLAYABLEUNITS"] 19:52:05 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=3, received=4
the last line keeps spamming..
running your script:
21:46:46 Error Undefined variable in expression: ff7_fnc_debuglog
21:46:46 File mpmissions\__cur_mp.Kunduz\scripts\HC_distributor.sqf, line 69
21:46:49 Error in expression <unt (units _x)), (name _currHC)])] call FF7_fnc_debugLog;
};
};
sleep 1;
} for>
21:46:49 Error position: <FF7_fnc_debugLog;
};
};
sleep 1;
} for>
So is there any way to just completely - or temporarily - block them from spawning at all?
So, i'm trying to figure out if it's a bug, issue or that i'm doing something wrong.
For my BLU_F side i've set the logistics so that it disabled the helicopter insertion/reïnforcements. Logically, you would expect the OPCOM not to drop in support/reïnforcements w/ heli's, yet they do. At times even with a group of 5, 6, which would cause them to freeze up, hang in the air and wait for a free area to drop if the area's too crowded.
Any idea's on how to fix this? I've already read something about possibly blacklisting them in staticdata?
Thanks!
@SavageCDN yeah, i got it fixed by waiting for all HC's to connect and load prior to launching the actual mission, but with @Whigital 's solution that would be way nicer so they can actually just connect whenever, will try it later when i get home.