The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keys on Doors...
ryan1431 Offline
Junior Member

Posts: 14
Threads: 10
Joined: Dec 2012
Reputation: 0
#1
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
12-01-2012, 07:54 AM
Find


Messages In This Thread
Keys on Doors... - by ryan1431 - 12-01-2012, 07:54 AM
RE: Keys on Doors... - by JMFStorm - 12-01-2012, 08:06 AM
RE: Keys on Doors... - by ryan1431 - 12-01-2012, 10:32 AM
RE: Keys on Doors... - by GoranGaming - 12-01-2012, 08:09 AM
RE: Keys on Doors... - by TheGreatCthulhu - 12-01-2012, 09:13 PM



Users browsing this thread: 1 Guest(s)