#Run the special when the special bar is full

1 messages · Page 1 of 1 (latest)

blissful moss
#

what does your animation_tree looks like?

#

and how do you get its reference?

fiery ridge
fiery ridge
blissful moss
#

the variable animation_tree, how do you set it?

fiery ridge
#

```@onready var animation_tree: AnimationTree = $AnimationTree````

blissful moss
#

can you show your animation tree inspector?

#

I have to get into a meeting. Will try to help you later

fiery ridge
fiery ridge
blissful moss
#

ok, you should use true/false to set those values

#

animation_tree["parameters/conditions/especial"] = true

#

ah

#

nevermind

#

you are passing that as a parameter

#

are you calling that from another script before this could be ready by any chance?

#

because I cannot pin point any issue

fiery ridge
#

the Eepecial is from another script

#

What do I call when the script is ready?

blissful moss
#

if the node is not ready yet the references will be null

#

you can use await node.ready

fiery ridge
#

like this?: func executar_especial(): var poder_fogo:= poder_fogo_cena.instantiate() if value >= 13: await poder_fogo.ready poder_fogo.Eespecial(true) reset_especial()

#

I did and didn't run the Eespecial(), but it didn't crash