bomb spawn im crying
This commit is contained in:
parent
9d0e09220d
commit
3302fcfc96
16 changed files with 148 additions and 15 deletions
13
scripts/item_spawner.gd
Normal file
13
scripts/item_spawner.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Node3D
|
||||
|
||||
@export var item: PackedScene
|
||||
|
||||
func _ready() -> void:
|
||||
deferred_spawn.call_deferred()
|
||||
|
||||
func deferred_spawn():
|
||||
if multiplayer.is_server():
|
||||
var node = item.instantiate()
|
||||
add_sibling(node,true)
|
||||
node.global_position = global_position
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue