movement system rework

This commit is contained in:
Rendo 2025-11-29 01:27:15 +05:00
commit 792465a33c
7 changed files with 47 additions and 31 deletions

View file

@ -8,7 +8,7 @@ func request_spawn(data: Variant) -> Node:
if data.has("scene") == false:
return Node.new()
var node = load(data.scene).instantiate()
if data.has(["impulse"]):
if data.has("impulse"):
if data.has_all(["ammo","remaining_ammo","slot"]):
node.weapon.ammo = data.ammo
node.weapon.remaining_ammo = data.remaining_ammo