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 8 levers in order to unlock door
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: 8 levers in order to unlock door

SetEntityConnectionStateChangeCallback("lever_1", "Func_add");

SetEntityConnectionStateChangeCallback("lever_2", "Func_add");

SetEntityConnectionStateChangeCallback("lever_3", "Func_add");

SetEntityConnectionStateChangeCallback("lever_4", "Func_add");

SetEntityConnectionStateChangeCallback("lever_5", "Func_add");

SetEntityConnectionStateChangeCallback("lever_6", "Func_add");

SetEntityConnectionStateChangeCallback("lever_7", "Func_add");

SetEntityConnectionStateChangeCallback("lever_8", "Func_add");

void Func_add (string &in asEntity, int alState);
if (alState)=1
{
AddLocalVarInt("var_1", 1);
GET();
}

void GET (?)
if (GetLocalVarInt(("var_1")=8)
{
////Stuff you want to happen
}

It should be something like this.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-15-2012, 11:22 AM
Find


Messages In This Thread
RE: 8 levers in order to unlock door - by The chaser - 10-15-2012, 11:22 AM



Users browsing this thread: 1 Guest(s)