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
Script Help Levers
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Levers

You are doing it wrong:

Copy&paste this:

void OnStart()
{
SetEntityConnectionStateChangeCallback("lever", "func_shelf");
}


void func_shelf(string &in asEntity, int alState)
{
     if (alState == 1)
     {
     SetEntityActive("fail_1", true);
     }
}
Hope it works!

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
01-15-2013, 10:17 PM
Find


Messages In This Thread
Levers - by assassinhawk45 - 01-15-2013, 10:13 PM
RE: Levers - by The chaser - 01-15-2013, 10:17 PM
RE: Levers - by assassinhawk45 - 01-15-2013, 10:26 PM
RE: Levers - by The chaser - 01-15-2013, 10:28 PM
RE: Levers - by assassinhawk45 - 01-15-2013, 10:34 PM



Users browsing this thread: 1 Guest(s)