I’m a beginner at Godot, I’m currently playing around with hitscan weapons etc., and using intersect_ray()
While trying to write code using Intersect_ray()
i keep geting an error message
“Too many arguments for “intersect_ray()” call. Expected at most 1 but received 2.”
i don’t know what i did wrong?
Here’s the code:
var collision = bullet.intersect_ray(muzle.transform.origin, aimcast.get_collision_point
if it helps, im using a tutorial: https://www.youtube.com/watch?v=4jbfIN4t83k&list=PLJJ-tyPiN1L_68DjYLfn7c1Yq8Kx6NWPw&index=7
Simas Burdenkovas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.