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
First Map. Few Problems
PlayPrey Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
First Map. Few Problems

hi there! Smile

im trying to make a amnesia custom story.
But my key dosen't unlock my specified door, ( the key's name and description works )
And my note is blank ( nothing there O.O )


Any solutions?


pp1.hps
PHP Code: (Select All)
///////////////
//
void OnStart()
{

AddUseItemCallback("UseKeyOnDoor""LOL""DoorLocked1""UseKeyOnDoor"true);
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked("DoorLocked1"falsetrue);
    
PlaySoundAtEntity("unlocked""unlock_door"asEntity0.0ffalse);
    
RemoveItem("LOL");


extra english.lang
PHP Code: (Select All)
<LANGUAGE>
    <
RESOURCES>
    </
RESOURCES>
    <
CATEGORY Name"CustomStoryMain">
        <
Entry Name"Description">This is my very first custom story for amnesiai hope people enjoy, and no im not good at making these.. so thats why it probably isnt so good.. and if PewDiePie plays thisthat would mean alot to me, and im gonna try not to make it specific for you.. :)   BTW it might not be scary.. who knows.. :O</Entry>
    </
CATEGORY>
    <
CATEGORY Name"Journal">
        <
Entry Name="Note01_Name">Welcome to your end</Entry>
        <
Entry Name="Note01_Text">LOL</Entry>
    </
CATEGORY>
    <
CATEGORY Name="Inventory">
        <
Entry Name="ItemName_LOL">Old Key</Entry>
        <
Entry Name="ItemDesc_LOL">Is this the key to that door?</Entry>
    </
CATEGORY>
</
LANGUAGE

(This post was last modified: 03-11-2012, 07:20 PM by PlayPrey.)
03-11-2012, 06:15 PM
Find
Mehis Offline
Member

Posts: 184
Threads: 10
Joined: Sep 2011
Reputation: 4
#2
RE: First Map. Few Problems

AddUseItemCallback("UseKeyOnDoor", "LOL", "DoorLocked1", "UseKeyOnDoor", true);


You need to change that to something else. You don't even have to name that. It's now calling the same function all over again.
03-11-2012, 10:16 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: First Map. Few Problems

Bump, This Didn't Fix his Problem. And I can't see what his problem is please, he requires more help.

-GreyFox

Current Project
Forgotten
03-19-2012, 08:44 PM
Find
PlayPrey Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2012
Reputation: 0
#4
RE: First Map. Few Problems

i fixed it.. thankts to grey fox
03-19-2012, 09:50 PM
Find




Users browsing this thread: 1 Guest(s)