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
What's wrong with this lever?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: What's wrong with this lever?

You don't use a SetEntityPlayerInteractCallback, you use this:

void OnStart()
{
     SetEntityConnectionStateChangeCallback("lever_easteregg", "Open_easteregg");
}
void Open_easteregg(string &in asEntity, int alState)
{
     if (alState == 1)
     {
          PlaySoundAtEntity("", "door_large_castle_open.snt", "shelf_easteregg", 1.0 / 2, false);
          SetEntityActive("shelf_easteregg", false);
          SetEntityActive("shelf_easteregg2", true);
     }
}

07-09-2011, 12:23 AM
Find


Messages In This Thread
What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 12:19 AM
RE: What's wrong with this lever? - by Kyle - 07-09-2011, 12:23 AM
RE: What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 12:58 AM
RE: What's wrong with this lever? - by Kyle - 07-09-2011, 01:10 AM
RE: What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 01:41 AM
RE: What's wrong with this lever? - by Kyle - 07-09-2011, 02:26 AM
RE: What's wrong with this lever? - by SkuLLfac3 - 07-09-2011, 02:43 AM



Users browsing this thread: 1 Guest(s)