Topic was automatically imported from the old Question2Answer platform.
Asked By
patlol
Hello,
I don’t understand the behaviour of
get_tree().is_network_master()
if I’m in a Node2D, get_tree().is_network_master() doesn’t give me an error message and returns a boolean
if I am in an Area2D child of the Node2D get_tree().is_network_master() gives me this error:
Invalid call. Nonexistent function ‘is_network_master’ in base
‘SceneTree’.
However both inherits from Node which contains this is_network_master() method???
In Area2D
is_network_master()
without get_tree() doesn’t return a message. Is this last syntax reliable, since I don’t give a base to the method?