Calling a function from one script to another

Global EventBus signals would be helpful, as it connect through EventBus AutoLoad that’s specifically exists to take any signal and any nodes can connect through it

the weapon manager node is added via editor? then you can just

@export var weapon_manager_node:Node3D

on interractRay code , to call something on weapon manager

1 Like