ahhh. thanks, didn't notice that.
(09-04-2011, 11:13 PM)A Tricky Carnie Wrote: ahhh. thanks, didn't notice that.
I thought I fixed it, but I guess not, heres what I have now:
Quote:////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("","Key_1", "mansion_3". "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity);
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false)
RemoveItem("Key_1");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
the "FATAL ERROR" box that shows up when I enter the map says...
Quote:FATAL ERROR: Could not load script file
'custom_stories/CursedMansion/maps/ch01/J:Steam/steamapps/common/amnesia the dark descent/custom_stories/CursedMansion/maps/ch01/map2.hps'!
main (8,1): ERR : Unexpected token '{'
I don't know if that is of any help, but I'm assuming the (8,1) refers to line 8 of the .hps file and the 1 means the first character on that line, which would be '{', and I don't know how to fix that.