mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 23:16:07 +00:00
NPC Fix
This commit is contained in:
parent
96898ad1cc
commit
b5315904f4
6 changed files with 96 additions and 97 deletions
|
|
@ -17,7 +17,8 @@ public partial class NPC : Area2D, IInteractable
|
|||
_scriptable = new ScriptableBase();
|
||||
_scriptable.Events = Events;
|
||||
|
||||
this.CallDeferred("add_child", _scriptable);
|
||||
// Add as sibling so relative paths still work
|
||||
GetParent().CallDeferred("add_child", _scriptable);
|
||||
}
|
||||
|
||||
public bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue