(03-11-2011, 02:06 AM)Droopy Wrote:  http://wiki.frictionalgames.com/hpl2/amn..._functions
http://www.frictionalgames.com/forum/thread-5117.html 
These links should help 
Don't forget to take a look around the forum (search option is a godsend) when you're looking for answers. 
Thanks for the quick response! but they didnt did work 

 i tried the key and door one from the 2nd link and its not working... i put it in the hps file.. any ideas? heres how my folders go
Custom_story's 
> Creature (my custom map folder) 
> Custom_story_settings.cfg/extra_english.lang/MAPS(folder) 
>  Detail test.map/ enclosedmap.map/ enclosedmap.hps 
> (in the hps folder)
void OnStart()
{
    AddUseItemCallback("", "R01_Key1", "mansion_1", "KeyOnDoor", true); 
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("mansion_1", false, true);
    PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
}
IM DESPERATE D: but thanks for helping me 
