Search the Community
Showing results for tags 'error type bool'.
Found 1 result
-
Using countSide is resulting in "Error Type Bool, expected Bool"
[GLT] Legislator posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello for years I've been using this code in my init.sqf to check for ingame conditions. if (isServer) then { // Task 1 PATROL [] spawn { waitUntil {((west countSide (list trg1)) > 0)}; nul = ["task1", "Succeeded"] execVM "\glt_core\scripts\tasks\task.sqf"; obj1 = true; publicVariable "obj1"; "patrol1" setMarkerColor "ColorRed"; "patrol1" setMarkerType "mil_objective"; "patrol1" setMarkerText localize "STR_GLT_Task_Goal_Secure_Area"; }; }; Since the last big game update it resulting into this error however: 17:59:27 Error in expression <aitUntil {((west countSide (list trg1)) > 0)}; nul = ["task1", "Succeeded"] exec> 17:59:27 Error position: <> 0)}; nul = ["task1", "Succeeded"] exec> 17:59:27 Error Type Bool, expected Bool I checked the condition ingame using the debugging console: a = west countSide list trg1; Results: a = 0 obj1 = true So apparently the condition is skipped because of the error and the code is executed before it should be. Can anyone confirm if this is an intended behaviour now or a game bug? What can I do to prevent this error? This is a very big issue for me as I'm using this code in more than 80 missions. Thanks to anyone in advance.