how to take a function from an instance

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

i have an instance

MAGIC_BLAST = loader-> load ("res: //Nodes/Player/Magic/Magic_Blast.tscn", "PackedScene");

Node2D * magic_blast = cast_to <Node2D> (MAGIC_BLAST-> instance ());

in gdscript it would look like this magic_blast.set_magic_blast_direction(1)
but I don’t know how to get a method from this instance in C ++

I repeat this question because I think no one will answer the last one
and sorry for the spam