bomb spawn im crying

This commit is contained in:
Rendo 2025-11-27 18:16:26 +05:00
commit 3302fcfc96
16 changed files with 148 additions and 15 deletions

13
scripts/item_spawner.gd Normal file
View 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()