movement system rework
This commit is contained in:
parent
900502ec8a
commit
792465a33c
7 changed files with 47 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue