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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Levers
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#5
RE: Levers

(07-27-2011, 08:32 PM)Tanshaydar Wrote: Is it a traditional door? I thought it was a door that moves upside.
Anyway, here's the code for you:

void MyFunction(string &in asEntity, int alState)
{
if( alState == 1)
{
  SetSwingDoorLocked("Slaver_Lever_Door", false, true);
}
}

It still doesn't work. Do I have to do something about the lever? Or anything? The door doesn't unlock and it just doesn work. Anything wrong with the script?

Spoiler below!
SetEntityConnectionStateChangeCallback("Slaver_Lever", "Lever_Slaver");

void Lever_Slaver(string &in asEntity, int alState)
{
if( alState == 1)
{
SetSwingDoorLocked("Slaver_Lever_Door", false, true);
}
}
07-27-2011, 08:44 PM
Find


Messages In This Thread
Levers - by Angerpull - 07-27-2011, 08:08 PM
RE: Levers - by Tanshaydar - 07-27-2011, 08:15 PM
RE: Levers - by Angerpull - 07-27-2011, 08:27 PM
RE: Levers - by Tanshaydar - 07-27-2011, 08:32 PM
RE: Levers - by Angerpull - 07-27-2011, 08:44 PM
RE: Levers - by Kyle - 07-27-2011, 08:50 PM
RE: Levers - by Angerpull - 07-27-2011, 08:59 PM
RE: Levers - by Kyle - 07-27-2011, 09:26 PM
RE: Levers - by Angerpull - 07-27-2011, 09:35 PM
RE: Levers - by Kyle - 07-27-2011, 09:50 PM
RE: Levers - by Angerpull - 07-27-2011, 10:02 PM
RE: Levers - by Roenlond - 07-27-2011, 10:14 PM
RE: Levers - by Angerpull - 07-27-2011, 10:41 PM
RE: Levers - by Roenlond - 07-27-2011, 10:46 PM



Users browsing this thread: 2 Guest(s)