Bool problems:

I have an issue with a bool that is changed from false to true in a function that is called from another script. after the function is called the bool won’t go back to false when set to false. is this because it is being called in a public void function from another script and being locked to true?

Once the other script calls this function the bool is broke?

Can you post the code? Otherwise its difficult to help you.

But in general there is no way to lock an public variable to a value.

If the other script sets it to true inside Update or another method that keeps getting called, then it will be set to true continuously.

Yep, just realized that’s what it was. Thanks for confirming that…:slight_smile: