I think I'm cursed... I've done EVERYTHING the guy in this tutorial did: http://www.youtube.com/watch?v=T4k5ILstUxc
But I can't make the fridgin' key work in the fudgin' door! Look at the .hps script:
////////////////////////////
// Run first time starting map
void onStart()
{
AddUseItemCallback("", "key", "door", "UsedKeyOnDoor", true);
}
The only thing that could be wrong is that the key name and door name is incorrect in the level editor. Go check that again, and make sure you hit ENTER after re-naming ANY object!
(10-22-2011, 08:58 PM)JenniferOrange Wrote: The only thing that could be wrong is that the key name and door name is incorrect in the level editor. Go check that again, and make sure you hit ENTER after re-naming ANY object!
Look at the pictures:
Help, please!
(This post was last modified: 10-22-2011, 09:55 PM by Victor.)
(10-22-2011, 08:58 PM)JenniferOrange Wrote: The only thing that could be wrong is that the key name and door name is incorrect in the level editor. Go check that again, and make sure you hit ENTER after re-naming ANY object!
Look at the pictures:
Help, please!
Click on the entities tab for each and check if the door is locked in the first place. If anything, could to take a screenshot of their "entity" tabs and post it here so we can help?
I found a mistake! But just a small ...
NO:
PlaySoundAtEntity("", "unlock_door", "door", 0, false);
SO:
PlaySoundAtEntity("", "unlock_door.snt", "door", 0, false);
The sound doesn't play without this, at least by me.
Side note: Brute is sleeeeeepy!
(This post was last modified: 10-22-2011, 10:00 PM by Brute.)
(10-22-2011, 09:56 PM)Statyk Wrote: Click on the entities tab for each and check if the door is locked in the first place. If anything, could to take a screenshot of their "entity" tabs and post it here so we can help?
(10-22-2011, 09:59 PM)Brute Wrote: I found a mistake! But just a small ...
NO:
PlaySoundAtEntity("", "unlock_door", "door", 0, false);
SO:
PlaySoundAtEntity("", "unlock_door.snt", "door", 0, false);
The sound doesn't play without this, at least by me.
Side note: Brute is sleeeeeepy!
Thanks, Brute
And here it is the picture, Statyk...
Do you guys have got anything for me?
(This post was last modified: 10-22-2011, 11:12 PM by Victor.)
First do what JenniferOrange suggested. If the OnStart() function isn't capitalized properly, it doesn't run. When it doesn't run, the key-door interaction isn't created. Ergo your key doesn't work! If you still can't get it to work, do this: Close Amnesia. Open the maps folder and if there is a .map_cache file, delete it. Restart Amnesia and see if that works. Cache files cause lots of issues >_>
(10-23-2011, 02:17 AM)JenniferOrange Wrote: I have another suggestion!
void onStart() -> capitalize the 'O'. void OnStart()
Tell me if that works!
(10-23-2011, 02:46 AM)palistov Wrote: First do what JenniferOrange suggested. If the OnStart() function isn't capitalized properly, it doesn't run. When it doesn't run, the key-door interaction isn't created. Ergo your key doesn't work! If you still can't get it to work, do this: Close Amnesia. Open the maps folder and if there is a .map_cache file, delete it. Restart Amnesia and see if that works. Cache files cause lots of issues >_>
Wow! Thank you guys! Im gonna test it as soon as I can! Thanks!
Everything is working now! That explains why nothing I put there worked... I was copying and pasting the script base, and it was always the same mistake... Everytime! THANKS!