Topic was automatically imported from the old Question2Answer platform.
Asked By
gdmark
I have two GDNative script attached to two nodes (parent and child). Is is possible for script to call a method in the other in game? and whats the best way to go about this.
The added check is to prevent crashes. Indeed, in GDScript, calling functions on a null object results in the engine stopping the game and telling you what’s wrong, but in C++ those things are less forgiving^^
Although, call(string) is a generic, slow call. There should be a way to actually call the C++ function which may run faster: