Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetLeverState(string& asName); HELP
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
GetLeverState(string& asName); HELP

Hello peoples,

I'm looking to use
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

...
06-11-2011, 06:10 PM
Find
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#2
RE: GetLeverState(string& asName); HELP

{
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

Got a nice sofa
Please come and have a seat for a while

06-11-2011, 08:16 PM
Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#3
RE: GetLeverState(string& asName); HELP

Thnx Big Grin Big Grin Big Grin Big Grin

...
06-11-2011, 09:48 PM
Find




Users browsing this thread: 1 Guest(s)