Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created March 1, 2025 19:17
Show Gist options
  • Save lamarmarshall/24a7572c8cc332ff255c638b9c5adcc4 to your computer and use it in GitHub Desktop.
Save lamarmarshall/24a7572c8cc332ff255c638b9c5adcc4 to your computer and use it in GitHub Desktop.
godot 4, spawn bullet
extends Node3D
@export var projectile: PackedScene
func _ready() -> void:
var shot = projectile.instantiate()
add_child(shot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment