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
unlock door
rodrigo1999 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Oct 2012
Reputation: 0
#1
unlock door

I'm new doing stories, but I really wanna do one. Now I have a problem with unlock a door, I saw tutorials, and I did what they said but didin't work.
my key's name is firstdoorkey and door's name is firstdoor.
I've got this is my ola.hps:
////////////////////////////
// Run first time starting map
void OnStart()
{
(
AddUseItemCallback("", "firstdoorkey", "firstdoor", "UsedKeyOnDoor", "true");
)

void MyFunc(string &in asItem, string &in asEntity)
(
SetSwingDoorLocked("firstdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "firstdoor", 0, false);
RemoveItem("firstdoorkey");
)
////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}




and this in my extra english lang:

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Hello There! Welcome to my first custom story, hope you enjoy! Big Grin</Entry>
<CATEGORY>
<CATEGORY Name="Inventory>
<Entry Name="ItemDesc_firstdoorkey">"Key to First door"</Entry>
<Entry Name="ItemName_firstdoorkey">First door key</Entry>

</CATEGORY>
<LANGUAGE>



so, can someone find any probem? Thanks so much! Big Grin
10-08-2012, 08:53 PM
Find


Messages In This Thread
unlock door - by rodrigo1999 - 10-08-2012, 08:53 PM
RE: unlock door - by Adny - 10-08-2012, 09:02 PM
RE: unlock door - by The chaser - 10-08-2012, 09:13 PM
RE: unlock door - by rodrigo1999 - 10-08-2012, 09:27 PM



Users browsing this thread: 1 Guest(s)