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
How to make a key open a level door?
taz251 Offline
Junior Member

Posts: 7
Threads: 3
Joined: Jul 2012
Reputation: 0
#1
How to make a key open a level door?

I have a key that unlocks a level door, but when it does the door still remains locked? Here is the script I have.

AddUseItemCallback("", "level_key", "level_dungeon_1", "OpenLevel", true);
}

void OpenLevel(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("", false, true);
PlaySoundAtEntity("", "unlock_door", "level_dungeon_1", 0, false);
RemoveItem("level_key");
}
08-04-2012, 12:59 AM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#2
RE: How to make a key open a level door?

SetLevelDoorLocked("level_dungeon_1", false);
08-04-2012, 01:11 AM
Find
taz251 Offline
Junior Member

Posts: 7
Threads: 3
Joined: Jul 2012
Reputation: 0
#3
RE: How to make a key open a level door?

(08-04-2012, 01:11 AM)Harthex Wrote: SetLevelDoorLocked("level_dungeon_1", false);
Thanks a lot. Do I replace it with SetSwingDoorLocked? Or just add it on.
08-04-2012, 01:17 AM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#4
RE: How to make a key open a level door?

Yeah, replace it.
08-04-2012, 01:25 AM
Find




Users browsing this thread: 1 Guest(s)