#hello there, how would i program this to be able to queue_free the "ammo" and not the camera
4 messages · Page 1 of 1 (latest)
ammo.queue_free()
You're not using the ammo anywhere to begin with..?
Calling queue_free() on any object in question should free it. Since you are calling queue_free() directly inside this class that extends camera, it makes sense that this object would free itself.
I think to better help, I would need to know what your intention is: Why is your camera object referencing the ammo? Does the ammo represent your remaining ammo, or a bullet/shot you just fired? What condition do you want to meet to free the ammo object?
yup im dumb thank you