Created
March 1, 2025 19:17
-
-
Save lamarmarshall/24a7572c8cc332ff255c638b9c5adcc4 to your computer and use it in GitHub Desktop.
godot 4, spawn bullet
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 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