Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created March 1, 2025 17:18
Show Gist options
  • Save lamarmarshall/608d065a329d913d2dfd13c6aca8d452 to your computer and use it in GitHub Desktop.
Save lamarmarshall/608d065a329d913d2dfd13c6aca8d452 to your computer and use it in GitHub Desktop.
godot, spawn
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