Frictional Games Forum (read-only)

Full Version: How to make a lever move an entity
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey. I'm trying to make a lever (which I'm calling "bridge_lever_1") to move a pig hanging from a chain ("bridge_metal_vert_1") on the Y axis. I want the pig to move down on the Y axis when the lever is being pulled down, and the pig to move back up when the lever is moved up.

I tried to make the script by using the cistern entrance bridge script, but I coulnt make it work.
Could someone expierieced tell me how I should make the script, please.