Fixed spawning issue
This commit is contained in:
parent
edd1894bcd
commit
bcb42f8d16
3 changed files with 6 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue