Frictional Games Forum (read-only)
De/activate a rope - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: De/activate a rope (/thread-23433.html)



De/activate a rope - Steve - 09-28-2013

I want to activate a rope when used you used a item on something.
But simply putting the rope area ect. inactive doesn't work. is there a way to do this.

A quick reply would be very appreciated. Smile


RE: De/activate a rope - Your Computer - 10-01-2013

A (slightly impractical) workaround would be to use InteractConnectPropWithRope to connect the rope to a valve that is out of view from the player. Then use SetWheelStuckState in place of SetEntityActive (-1 for "deactivating the rope" and 1 for "activating the rope"). Note that the rope area should be placed outside the room and make sure that the position node is directly below the rope area (i.e. it can't be at an angle, else the game may crash).

Suggested rope settings would be:

MinTotalLength: 0.01
Automove: checked
Automove acceleration: 50
Automove max speed: 50
RopeFile: (leave blank)
Damping: 1
Stiffness: 1

and adjust MaxTotalLength to your needs.