taz251
Junior Member
Posts: 7
Threads: 3
Joined: Jul 2012
Reputation:
0
|
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 |
|
Kazakarumariou
An angry man.
Posts: 283
Threads: 8
Joined: Jul 2012
Reputation:
14
|
RE: How to make a key open a level door?
SetLevelDoorLocked("level_dungeon_1", false);
|
|
08-04-2012, 01:11 AM |
|
taz251
Junior Member
Posts: 7
Threads: 3
Joined: Jul 2012
Reputation:
0
|
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 |
|
Kazakarumariou
An angry man.
Posts: 283
Threads: 8
Joined: Jul 2012
Reputation:
14
|
RE: How to make a key open a level door?
Yeah, replace it.
|
|
08-04-2012, 01:25 AM |
|