made weapon into a dependant and used new forgeneitty node as a node3d
This commit is contained in:
@@ -29,7 +29,8 @@ public class ExplodingSwordBehavior(PackedScene explosion, float radius) : IAbil
|
||||
return;
|
||||
}
|
||||
explo.Radius = radius;
|
||||
|
||||
|
||||
GD.Print("explosion");
|
||||
owner.GetTree().GetRoot().CallDeferred(Node.MethodName.AddChild, explo);
|
||||
explo.CallDeferred(Node3D.MethodName.SetGlobalPosition, owner.GlobalPosition);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user