Alright time for a pretty dumb™️ question here:
My Godot setup here is LMB does a hit check with a 3DRayCast and 'always' tries to apply damage to whatever it hits.
Problem is, it errors out if the hit target can't actually handle the damage function.
Is there a way to 'check' if the hit object can actually handle damage? (Without doing a match statement because that would be tedious since I have a bunch of object types that can be damaged)
This was working until I fixed the collision for all my static meshes. Previously they'd block the player but not ray casts, but now that they're fixed, they can be damaged and error out. 🥲️