Hanging things on ropes

Having an object hang by a realistically-moving rope gives players much more immersion than a rigid, stationary rope. This is often done with lamps to make them move around after being hit in some way.

Place whatever object you want on the rope at the spot it should come to rest at. Hypothetically you could use any physics object. All you need to do is give it a name. (This tutorial calls it .)

Create a rope with one end at the ceiling/wall, etc. (This tutorial calls it .) The other end should be at the spot at which you want the rope to be attached to your hanging object. (This tutorial calls it .) Parent   to. Obviously, set 's Next Keyframe to. You can give your rope slack, but it might look weird. Ironically, you should leave Start Dangling on No.

Place a anywhere (but keep it near). Set both Measure Reference and Movement Reference to. Set both Entity to Measure and Entity to Move to.

Place a at the exact same spot as , or very close to it. In the 2D views, a white circle will appear once this entity is selected. Drag this circle up to the origin of  to set Attached object 2 point. Set Entity 1 to  and leave Entity 2 blank. You can also use, which makes the movement a bit more realistic and has a basically identical setup, but requires more fiddling with it.

Run your map and you'll see the hanging object move away when nudged and shot at. You might also notice that it sways back and forth immediately after spawning, which is just draining CPU resources. Follow the regular process for settling the object with (and maybe turn up host_timescale). If it still jiggles slightly even after doing this, just set it to start asleep if the option is available.

Here's an example map with everything already set up for  and  :