Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | CarlitosCUeba |
I need an area to connect a signal to your father using the code. As much as I can do this manually
(C#)
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | CarlitosCUeba |
I need an area to connect a signal to your father using the code. As much as I can do this manually
(C#)
Reply From: | Wakatta |
If you mean parent by “father”
public class SignalExample : Area
{
public override void _Ready()
{
Connect("body_entered", GetParent(), nameof(_coffin));
}
}
And on the parent node
public void _coffin()
{
//Do stuff
}