![]() |
Whats wrong with that 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: Whats wrong with that script? (/thread-10750.html) Pages:
1
2
|
Whats wrong with that script? - Chaker - 10-14-2011 Hey Guys, i've got a problem, i watched tutorials about scripting etc i copied the script in the tutorials and just renamed the item and the door. void OnStart() { AddUseItemCallback("", "doorkey2", "door2","UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in esEnity) { SetSwingDoorLocked("door2", false, true); PlaySoundAtEnity("", "unlock_door", "door2", 0, false); RemoveItem("doorkey2"); } RE: Whats wrong with that script? - Your Computer - 10-14-2011 So, what is the problem exactly? RE: Whats wrong with that script? - Chaker - 10-14-2011 i try to open a door using a key, but its not working RE: Whats wrong with that script? - Your Computer - 10-14-2011 (10-14-2011, 05:04 PM)Chaker Wrote: i try to open a door using a key, but its not working What kind of door is it and have you checked to make sure that the door name matches the one in the script and that the key the user carries has the same name as the script? RE: Whats wrong with that script? - Chaker - 10-14-2011 yeah they are the same, can you add me in skype so i can show you screenshot or you can help me with teamviewer? skype: coka_leha RE: Whats wrong with that script? - Your Computer - 10-14-2011 (10-14-2011, 05:11 PM)Chaker Wrote: yeah they are the same, can you add me in skype so i can show you screenshot or you can help me with teamviewer? skype: coka_leha I don't have Skype, and while i have TeamViewer i would rather that any fix be publicly available for future reference. RE: Whats wrong with that script? - Chaker - 10-14-2011 i tried everything but nothin works :S RE: Whats wrong with that script? - Your Computer - 10-14-2011 (10-14-2011, 06:37 PM)Chaker Wrote: i tried everything but nothin works :S What's "everything"? RE: Whats wrong with that script? - GreyFox - 10-14-2011 void UsedKeyOnDoor(string &in asItem, string &in esEnity) Should Be asEntity -Grey Fox RE: Whats wrong with that script? - Chaker - 10-14-2011 fixed but still not working |