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
Level Editor Help Door set to locked, still unlocked.
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#4
RE: Door set to locked, still unlocked.

(03-15-2012, 04:25 PM)Asaratha Wrote:
(03-15-2012, 02:34 PM)ClayPigeon Wrote: What is the problem? I don't get it... If the problem is that the door is not unlocked, try this:

void KeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}

Copy it as it is and don't change anything, tell me if it's unlocking now.
Oops, it seems I have forget to say the problem. Without unlocking the door, it's already unlocked. So, regardless of the fact I have it set to "Locked", it's always unlocked.
try
for a swing door.

Spoiler below!

void OnStart()
{
SetSwingDoorLocked("door", true, true);
}


or
For level door
Spoiler below!

void OnStart()
{
SetLevelDoorLocked("door", true);
}

Depends if you have aswing door or level door

Signature to awesome to be displayed.
(This post was last modified: 03-15-2012, 04:34 PM by Stepper321.)
03-15-2012, 04:33 PM
Find


Messages In This Thread
Door set to locked, still unlocked. - by Asaratha - 03-15-2012, 02:28 PM
RE: Door set to locked, still unlocked. - by Stepper321 - 03-15-2012, 04:33 PM



Users browsing this thread: 1 Guest(s)