Reload a scene only once

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By milkiscool

I have an issue where I need to reload a scene only once, but If I try to make it reload on the script scene then it gets stuck in an infinite loop of reloading the scene and freezes and crashes. Thanks!!

:bust_in_silhouette: Reply From: jasperbrooks79

In Visual script, you can use the Get Scene Tree node, and use the ’ change_scene ’ method, it only changes once . . .

I think you need to use that ’ method ', instead of reload . . . :slight_smile: <3

:bust_in_silhouette: Reply From: jasperbrooks79

However, I think when writing it, the Get Scene Tree is, called scene_tree, then . . .

scene-tree.change-scene(folder path string) . .