Link two objects

What is the easiest way to do this? Is the “Put an object around another” action a possibility?

I have a helicopter object and I want to add a separate gun object that will “stick” to the helicopter (move with it), but I want to be able to rotate the gun object independently of the helicopter.

If you have only one helicopter, just change the position of the gun with the appropriate action so as to put it on the helicopter:

Do =Helicopter.X() to X position of gun Do =Helicopter.Y() to Y position of gun

You can also optionally use a point put on the helicopter to position precisely the gun: ( Assuming point name is gun here )

Do =Helicopter.PointX(gun) to X position of gun Do =Helicopter.PointY(gun) to Y position of gun

You can then rotate the gun toward the mouse for example or anything else.

Yeah, I figured it out yesterday, but forgot to edit the post. Thank you anyway :slight_smile: