![]() |
Closet script - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Closet script (/thread-17404.html) Pages:
1
2
|
Still need help to Closet Script! :( - Pandachoko - 08-03-2012 I still have problem with my closet script. My script is this: //////////////////////////// // Run first time starting map void OnStart() { AddUseItemCallback("", "KeyCloset", "ClosetLock", "UnlockCloset", true); } void UnlockCloset(string &in asItem, string &in asEntity) { SetEntityActive("ClosetLock", false); GiveSanityBoost(); PlaySoundAtEntity("", "unlock_door", "Player", 0, false); RemoveItem("KeyCloset"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } When I use my key on the block box. It says. you can't use the item here. Like the key to door problem, will some one help me ![]() ![]() RE: Still need help to Closet Script! :( - Kazakarumariou - 08-04-2012 Didn't you add skype? I don't see you RE: Still need help to Closet Script! :( - Pandachoko - 08-04-2012 (08-04-2012, 12:10 AM)Harthex Wrote: Didn't you add skype? I don't see youI did ![]() ![]() RE: Still need help to Closet Script! :( - Kazakarumariou - 08-04-2012 (08-04-2012, 12:14 AM)Pandachoko Wrote:Same picture as here.(08-04-2012, 12:10 AM)Harthex Wrote: Didn't you add skype? I don't see youI did RE: Closet script - Statyk - 08-04-2012 How many "How do I open a door with a key" threads is this forum going to see before people actually use the search bar? RE: Closet script - Kazakarumariou - 08-04-2012 (08-04-2012, 01:17 AM)Statyk Wrote: How many "How do I open a door with a key" threads is this forum going to see before people actually use the search bar?He has a closet one. with a block box infront blocking the doors. you use the key on the block box removing it. RE: Closet script - Statyk - 08-04-2012 It still works the same. |