Keys on Doors...
Okay, so I've been working getting a single key on a single door for about half a week now... and its really annoying so i was wondering if some1 could help me.
I use HPL with amnesia (windowed) open with debug, so when i make a change on HPL, i save it and go to amnesia and press quick map reload. I tweaked my ".hps" file (void stuff) as i should have to get the key registered and working. This is what i have in that file...
void OnStart()
{
AddUseItemCallback("", "studykey_1", "mansion_2", "OPEN", true);
}
void OPEN(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(mansion_2, false, true);
PlaySoundAtEntity("", "unlock_door", mansion_2, 0, false);
RemoveItem(studykey_1);
}
Using this information, which is 100% correct (names n stuff), i get 6 Error reports when i try to quick reload.
These are the errors:
1)main (5,1) : INFO : Compiling void OPEN(string&in, string&in)
2)main (8,24) : ERR : 'mansion_2' is not declared
3)main (9,5) : ERR : No matching signatures to 'PlaySoundAtEntity(string@&, string@&, int, const uint, const bool)
4)main (9,5) : INFO : Candidates are:
5)main (9,5) : INFO : void PlaySoundAtEntity(string&in, string&in, string&in, float, bool)
6)main (10,16) : ERR : 'studykey_1' is not declared
|