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
Secret Doors?
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#6
RE: Secret Doors?

Bumping a really old thread, but I can't seem to get my secret door to work. I have a lever called "secret_lever" and a secret door in the wall aptly named "secret_door"

In my script, I have:

Spoiler below!

void OnStart()

{
SetEntityConnectionStateChangeCallback("secret_lever", "secretdoor");
}

void secretdoor(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("secret_door",1.0f);
}
}

Everything is pretty much copy and pasted, but pushing the lever up or down does absolutely nothing. Have I missed some obvious step?
03-06-2012, 04:31 AM
Find


Messages In This Thread
Secret Doors? - by Tripication - 01-11-2012, 07:14 AM
RE: Secret Doors? - by flamez3 - 01-11-2012, 07:17 AM
RE: Secret Doors? - by Tripication - 01-11-2012, 07:40 AM
RE: Secret Doors? - by flamez3 - 01-11-2012, 07:48 AM
RE: Secret Doors? - by Tripication - 01-11-2012, 07:57 AM
RE: Secret Doors? - by Damascus - 03-06-2012, 04:31 AM
RE: Secret Doors? - by Cranky Old Man - 04-04-2012, 11:33 AM
RE: Secret Doors? - by SilentStriker - 04-04-2012, 09:41 PM
RE: Secret Doors? - by Cranky Old Man - 04-05-2012, 12:28 AM
RE: Secret Doors? - by SilentStriker - 04-05-2012, 07:42 AM
RE: Secret Doors? - by Cranky Old Man - 04-05-2012, 09:05 AM
RE: Secret Doors? - by SilentStriker - 04-05-2012, 09:27 AM



Users browsing this thread: 1 Guest(s)