#Help with scene variables

1 messages · Page 1 of 1 (latest)

worn kelp
#

As the logs show, the script that sets the "playerPosition" scene variable is working, however the script on another object that needs to get this is just returning the default value.

New to visual scripting so likely doing something stupid.

Neither of the playerPosition variable names have any whitespace, they match exactly.

worn kelp
#

Incase this is any help, the variable shows correctly here too

spring gulch
#

So checking your DM... I think the issue is you are saving scene variable in code and not adding it as a variable off-playmode

#

Sometimes one red node screws the rest and console doesnt show you exactly which one gives error.

Do you have "pause on error" in the console?

Did you check all your graphs calling that scene variable?

spring gulch
worn kelp
spring gulch
spring gulch
long meadow
long meadow
spring gulch
#

Was about to tell you - to open a new post! 🙂 will check it out there