Created
March 1, 2025 17:18
-
-
Save lamarmarshall/608d065a329d913d2dfd13c6aca8d452 to your computer and use it in GitHub Desktop.
godot, spawn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node3D | |
@export var turret: PackedScene | |
# Called when the node enters the scene tree for the first time. | |
func _ready() -> void: | |
var new_turret = turret.instantiate() | |
add_child(new_turret) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment