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
Of Keys and Locked doors...
Ethril Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2011
Reputation: 0
#4
RE: Of Keys and Locked doors...

(01-12-2011, 11:10 AM)Neatherblade Wrote: void OnStart()
{
AddUseItemCallback("", "R01_Key1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
}

Taken from here

http://www.frictionalgames.com/forum/thread-5117.html

Ty for the info! however it still will not open with the use of my key. Are there any options on the door and key that I have to put info in? all I have done is ticked the "lock" box on the door entity. I am able to pick up the key see it's name and description however when I double click on it and use it on the door, it says this item can not be used this way!

here is my current script! help please Sad! OldDoor= door name strangekey_1 = key name

void onStart()
{
AddUseItemCallback("", "strangekey_1", "OldDoor", "KeyOnDoor", true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("OldDoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "OldDoor", 0.0f, true);
}



void onEnter()
{

}


void OnLeave()
{

}
01-12-2011, 11:48 AM
Find


Messages In This Thread
Of Keys and Locked doors... - by Ethril - 01-12-2011, 03:27 AM
RE: Of Keys and Locked doors... - by Ethril - 01-12-2011, 10:46 AM
RE: Of Keys and Locked doors... - by Neatherblade - 01-12-2011, 11:10 AM
RE: Of Keys and Locked doors... - by Ethril - 01-12-2011, 11:48 AM
RE: Of Keys and Locked doors... - by Neatherblade - 01-12-2011, 12:27 PM
RE: Of Keys and Locked doors... - by Ethril - 01-12-2011, 12:44 PM
RE: Of Keys and Locked doors... - by Ethril - 01-14-2011, 07:47 AM
RE: Of Keys and Locked doors... - by Frontcannon - 01-14-2011, 08:04 PM
RE: Of Keys and Locked doors... - by Ethril - 01-15-2011, 07:03 AM
RE: Of Keys and Locked doors... - by Andross - 01-15-2011, 07:07 AM
RE: Of Keys and Locked doors... - by Vradcly - 02-04-2011, 12:30 AM



Users browsing this thread: 1 Guest(s)