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
I need help with a Script
priesta Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2011
Reputation: 0
#1
Brick  I need help with a Script

hello there people.
As im new to scripting, especially in making levels in amnesia, i watched a lot of
tutorials. and i did take a look at the script functions wiki.

I want to do a totally simple thing. A key that opens a locked door.
I do everything like they do in their tutorials. EVERTHING
But i keep getting this error...
[Image: errorqd.jpg]

Here is my HPS file

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "awesomekey_1", "door_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem(awesomekey_1);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


and here is my extra_english.lang

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Hier gehts rund, einer in de Pobbes,(br) (br) einer in the Mund!</Entry>
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemName_AwesomeKey">Lounge Schlüssel</Entry>
<Entry Name="ItemDesc_AwesomeKey">"Schlüssel zur Lounge"</Entry>
</CATEGORY>
</LANGUAGE>


Please help me guys, im going mad over this simple sh*t
regards, priesta
09-30-2011, 09:35 AM
Find


Messages In This Thread
I need help with a Script - by priesta - 09-30-2011, 09:35 AM
RE: I need help with a Script - by Obliviator27 - 09-30-2011, 09:42 AM
RE: I need help with a Script - by priesta - 09-30-2011, 09:44 AM



Users browsing this thread: 1 Guest(s)