4.4.1
I need to call a node function from outside of the Player scene, this is being done so that I can see when the PlayerView raycast intersects with an area3d inside the character scene
4.4.1
I need to call a node function from outside of the Player scene, this is being done so that I can see when the PlayerView raycast intersects with an area3d inside the character scene
Your code might work, but if you are stopping because the autocomplete doesn’t appear then you will have to define some static types. In which case you could also use @export
instead of paths to siblings/parents.
You’re getting the player by $"../Player"
then using the same path in Player.get_node
, maybe you would have better autocomplete by using the $
notation instead.
Make sure to paste scripts instead of screenshots