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
Key Problem
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#1
Exclamation  Key Problem

Hi all!
Im working on a custom map and I'm stuck on probably one of the most simplest things: unlocking a door. Here's my script. Is there something wrong? The error I get is cellar1 is undeclared and no matching signature PlaySoundAtEntity

My .hps
void OnStart()
{
    AddUseItemCallback ("", "cellarkey", "cellar1", "Unlock1", true);
    SetEntityCallbackFunc ("cellarkey,", "OnPickup");
}

void Unlock1(string &in key1, string & in door1)
{
    SetSwingDoorLocked (cellar1, false, true);
    PlaySoundAtEntity ("", "unlock_door", cellar1, 0, false);
    RemoveItem ("cellarkey");
}

.lang
<LANGUAGE>
              <CATEGORY Name="Inventory">
        <Entry Name="ItemDesc_cellarkey">The Key For Emergencies.</Entry>
        <Entry Name="ItemName_cellarkey">The Emergency Key</Entry>
    </CATEGORY>
</LANGUAGE>
10-14-2012, 01:04 AM
Find


Messages In This Thread
Key Problem - by TheMadmaxster - 10-14-2012, 01:04 AM
RE: Key Problem - by Adny - 10-14-2012, 01:11 AM



Users browsing this thread: 1 Guest(s)