Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | turtilla955 |
here is my code:
if $Camera3D/RayCast3D.is_colliding() and Input.is_action_pressed("shoot"):
var selected = get_collider()
if selected is enemy:
print("working")
i have checked that i have a class named “enemy” in a different node and that all the names are right, so im geussing that it is a problem with the get_collider
function