Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 5cfe121

Browse files
Reset player position to 0,0 on =
1 parent f40b47d commit 5cfe121

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Scripts/Scenes/Main/Debug.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Godot;
2+
using GodotModules.Netcode.Server;
23

34
namespace GodotModules
45
{
@@ -8,7 +9,10 @@ public override void _Input(InputEvent @event)
89
{
910
if (Input.IsActionJustPressed("ui_test"))
1011
{
11-
GetTree().Root.PrintStrayNodes();
12+
//GetTree().Root.PrintStrayNodes();
13+
14+
var player = GameServer.Players[0];
15+
player.Position = Godot.Vector2.Zero;
1216
}
1317
}
1418
}

0 commit comments

Comments
 (0)