Line underlined in orange although there are no issues

Hello!

I have an issue where my line of code is underlined in orange although there are no grammatical mistakes

Please help!

2 Likes

try going to the VIEW tab and clicking Script Analysis, that could help see what the problem is.

3 Likes

Type Error: (492,8) Type true cannot be compared with false

How can i fix that?

1 Like

What is the variable result specified as in your script? Should it be a true or false boolean?

1 Like

At the top the variable is set to false

2 Likes

Please include all of line 476. We can’t see what the variable is supposed to be without it.

1 Like

1 Like

The error is happening because you are trying to check if IsAutoHatching is false in a loop that runs while it is true
Just remove the line 492 - 494 completely, it is useless as it will automatically break when IsAutoHatching becomes false

3 Likes

By the way, the issue is now:

if IsAutoHatching == false then

1 Like

Alright, i am following a tutorial so i don’t know if it will work, but i will try it. Thanks!

1 Like

Yep, It Works.

Thanks!

-ScxiptedShark

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.