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


Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3buttons then a bookshelf opens
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: 3buttons then a bookshelf opens

void OnStart()
{
     SetLocalVarInt("Var01", 0);
     for (int x = 1; x < 4 && x > 0; x++)
     {
          SetEntityPlayerInteractCallback("Button_"+x, "Func_"+x, true);
     }
     FuncOpen();
}
void Func_1(string &in asEntity) { AddLocalVarInt("Var01", 1); }
void Func_2(string &in asEntity) { AddLocalVarInt("Var01", 1); }
void Func_3(string &in asEntity) { AddLocalVarInt("Var01", 1); }
void FuncOpen()
{
     if (GetLocalVarInt("Var01") == 3)
     {
          // However the bookshelf opens...
          return;
     }
}

Edit: Oops, here you go, this one is right now.

(This post was last modified: 06-13-2011, 08:04 PM by Kyle.)
06-13-2011, 08:03 PM
Find


Messages In This Thread
3buttons then a bookshelf opens - by xtron - 06-13-2011, 03:28 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-13-2011, 08:03 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-13-2011, 08:13 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-13-2011, 08:28 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-13-2011, 08:38 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-13-2011, 08:58 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-14-2011, 02:58 PM
RE: 3buttons then a bookshelf opens - by Apjjm - 06-15-2011, 03:31 PM
RE: 3buttons then a bookshelf opens - by xtron - 06-15-2011, 06:39 PM
RE: 3buttons then a bookshelf opens - by Kyle - 06-15-2011, 07:39 PM



Users browsing this thread: 1 Guest(s)