Fixed spawning issue

This commit is contained in:
Rendo 2025-11-29 19:07:38 +05:00
commit bcb42f8d16
3 changed files with 6 additions and 11 deletions

View file

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