Forum rules - please read before posting.

Probably a Bug OnVariableChange

edited December 2022 in Technical Q&A

I'm checking for when a specific global variable change, but it seems that when I change a component variable from the same id int, send an event to that same id from global variable.

When I change the parameter from this component "1: CurrentStatues" I'm receiving event from the image above.

Edit: Ok, now I got it, GVar is not just for Global Variables, I changed the check to (gvar.IsGlobalVariable() && gvar.id == 1) and it worked, if there is another way to check it please let me know.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.