cb65 86 Posted July 26, 2019 I'm getting some script errors in my mission since the new update. This bit of code. waitUntil {(!isNull (missionNamespace getVariable "rGUI_squadGUI"))}; Now gives me this script error. waitUntil {(!isNull (missionNamespace getVariable "r> 12:16:12 Error position: <!isNull (missionNamespace getVariable "r> 12:16:12 Error Type Bool, expected Bool And this bit of code. waitUntil { uiSleep 1; { if ((agent _x isKindOf "Snake_random_F") or (agent _x isKindOf "Rabbit_F")) then { deleteVehicle agent _x; }; } forEach agents; }; Now gives me this script error. 12:22:25 Error in expression <_F") or (agent _x isKindOf "Rabbit_F")) then { deleteVehicle agent _x; }; } forE> 12:22:25 Error position: <then { deleteVehicle agent _x; }; } forE> 12:22:25 Error Type Any, expected Bool To me it looks like something has changed with the waitUntil command. Does anyone know why I'm getting these script errors now when they worked before the update ? Share this post Link to post Share on other sites
whiztler 137 Posted July 26, 2019 From the wiki waitUntil: Quote Since Arma 3 v1.93.145618 returning anything other than true or false from condition will result in appropriate type error and termination of the wait. The telltale sign of expression not returning Boolean is "Type <whatever>, expected Bool" error message as well as "Type Bool, expected Bool", which means that expression should return Boolean but something makes it undefined 1 Share this post Link to post Share on other sites
pierremgi 4934 Posted July 26, 2019 Strange way to kill rabbits and snakes every seconds. The enableEnvironment command does the trick except if you're fond of forcing diptera. 1 Share this post Link to post Share on other sites
cb65 86 Posted July 26, 2019 On 7/26/2019 at 2:17 PM, whiztler said: From the wiki waitUntil: Thanks I changed the code and fixed the script errors. On 7/26/2019 at 2:56 PM, pierremgi said: Strange way to kill rabbits and snakes every seconds. The enableEnvironment command does the trick except if you're fond of forcing diptera. Yeah I only want to remove snakes and rabbits. Thanks. Share this post Link to post Share on other sites