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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#8
RE: 3buttons then a bookshelf opens

Thanks kyle! Tongue.
But it doesn't work for me :S

void OnStart()
{
     SetLocalVarInt("Var01", 0);
     SetEntityPlayerInteractCallback("button1", "Func_1", true);
     SetEntityPlayerInteractCallback("button2", "Func_1", true);
     SetEntityPlayerInteractCallback("button3", "Func_1", true);
     FuncOpen();
}

void Func_1(string &in asEntity)
{
     AddLocalVarInt("Var01", 1);
     SetEntityInteractionDisabled(asEntity, true);
}
void FuncOpen()
{
     if (GetLocalVarInt("Var01") == 3)
     {
          RotatePropToSpeed("shelf_move1", 1.0f, 0.6f, 0, 0, 65, false, "shelf_moveto_thisplace");
          return;
     }
}

[Image: 44917299.jpg]Dubstep <3
06-14-2011, 02:58 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)