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
|
Closet script - Pandachoko - 08-01-2012 Can someone help me. I am fully making my custom story. And I am trying to make. so that if you pick up a key you can open a closet. Can someone tell what the script is called... Please help XD I hope that is the same as open a door with a key script... But I don't what to write in the function Closet script!!! Help!.?!!?!? - Pandachoko - 08-01-2012 Can someone help me. I am fully making my custom story. And I am trying to make. so that if you pick up a key you can open a closet. Can someone tell what the script is called... Please help XD I hope that is the same as open a door with a key script... But I don't what to write in the function RE: Closet script!!! Help!.?!!?!? - Kazakarumariou - 08-01-2012 First put an entity over the closet. (this entity is invisible and it won't let you open the door. You find it Technical > Block box) Okay name the block box "ClosetLock" 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"); } RE: Closet script - Kazakarumariou - 08-01-2012 Why do you make two threads? an admin will usually move it I have my answer in the other one. RE: Closet script!!! Help!.?!!?!? - Pandachoko - 08-01-2012 Okay thanks You just saved miy day, now I will not be stuck with it But. The block box should it be around the closet or?.. and one last thing. Is it okay to name the closet after needs? RE: Closet script - Pandachoko - 08-01-2012 I am a beginner on this website that is why RE: Closet script - lolmaster - 08-01-2012 (08-01-2012, 05:44 PM)Pandachoko Wrote: I am a beginner on this website that is whyThat's not a very good excuse... RE: Closet script - Pandachoko - 08-01-2012 Well I just made my profile 3 hours. So that is pretty true it dosn't work put the scripting directly into the hps. file. Don't know what I done wrong RE: Closet script - Kazakarumariou - 08-01-2012 Rename the name of the key to "KeyCloset" RE: Closet script - Pandachoko - 08-01-2012 already did already did how can I show you're mine hps. |