Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | phil1234 |
Hi,
I need to check if the node linked to my script is equals to a global variable
but how do I get the node linked to my script ?
thanks
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | phil1234 |
Hi,
I need to check if the node linked to my script is equals to a global variable
but how do I get the node linked to my script ?
thanks
Reply From: | phil1234 |
actually it’s just about using self
if(Global.currentPlayer==self):
global being a singleton and currentPlayer assigned on startup to a root particular node