How can I make a missile system work?

Hello I’m currently working on a missile system for an aircraft.

How can I make it so when an enemy aircraft is flying in front of a Frame it puts it in an object value ?

1 Like

Raycasting
not enough info in your post, what circle? “lock on” and then?

Sorry about that.

Hopefully it makes more sense now.

Thank you I will try that.

Yup no problem, I really think that Raycasting could be a good approach for that.

If you raycast from the nose of the aircraft, or something close to the “CrossHair” GUI label, you will get the objetcs “inside” the circle/crosshair, if the hit result has a player/aircraft then do the “lock on” adding that value to your system
Raycast

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.