How call function from another scriot in function?

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

I want call a function from another script in(func _on_Area2D_body_entered(body))

:bust_in_silhouette: Reply From: JimArtificer

Generally, this is done by emitting a signal unless the other node is a child node.

https://docs.godotengine.org/en/stable/getting_started/step_by_step/scripting.html#handling-a-signal

It is in another script (two separate bodies)

Morangodev | 2020-07-23 01:30