Jump to content
cb65

Getting script errors since update 1.94

Recommended Posts

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.  :shrug:

 

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

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

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Strange way to kill rabbits and snakes every seconds. The enableEnvironment command does the trick except if you're fond of forcing diptera.  

  • Haha 1

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×