Frictional Games Forum (read-only)

Full Version: GetLeverState(string& asName); HELP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello peoples,

I'm looking to use
Code:
GetLeverState(string& asName);

In my level But how would I get the game to detect when the
lever has been pulled all the way?

-X4anco
{
if(GetLeverState("Name of lever") = 1)
{
//Put here what to happen when state is max
}
}

0 = not stuck, 1 = at max, -1 = at min

Regards,
Ferry
Thnx Big Grin Big Grin Big Grin Big Grin