![]() |
Help me! Help me now! :( - 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: Help me! Help me now! :( (/thread-14515.html) |
Help me! Help me now! :( - Tenishan - 04-05-2012 Hey guys, this is my first post! I've been trying to learn the basics of scripting, and I find it rather difficult! ![]() void Onstart() { AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false); RemoveItem("awesomekey_1"); } Where did I get it wrong? RE: Help me! Help me now! :( - Your Computer - 04-05-2012 Onstart is not OnStart. RE: Help me! Help me now! :( - Tenishan - 04-05-2012 Thanks man! Works like a charm. It's interesting that one letter can make everything fall apart! xD RE: Help me! Help me now! :( - JetlinerX - 04-05-2012 Oh, wow. I had no idea scripts were cAsE SeNsItIvE! Thanks YC, AGAIN! RE: Help me! Help me now! :( - Cranky Old Man - 04-05-2012 (04-05-2012, 07:58 PM)JetlinerX Wrote: Oh, wow. I had no idea scripts were cAsE SeNsItIvE! Thanks YC, AGAIN!But you've released mods and made over 400 posts here! Now I'm all kinds of confused. That's one of the first things you learn. ![]() RE: Help me! Help me now! :( - JetlinerX - 04-06-2012 I've always just used the correct capital letters! XD |