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
** SOLVED ** Key Doesn't Unlock Door!
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Key Doesn't Unlock Door!

Door unlock.
PHP Code: (Select All)
void OnStart()

    
AddUseItemCallback("""Key1""masion_Door""DoorUnlockKey"true);
}

void OnEnter()
{

}

void OnLeave()


}
void DoorUnlockKey(string &in asItemstring &in asEntity//Syntax mistake.
{
    
SetLevelDoorLocked("masion_Door"false);
    
PlayGuiSound("unlock.door.snt"100);
    
RemoveItem("KeyNAME");


extra_english.lang
PHP Code: (Select All)
<LANGUAGE>
       <
RESOURCES>
            </
RESOURCES>
  <
CATEGORY Name="CustomStoryMain">
    <
Entry Name="Description">Dare to enter the castle tombs...</Entry>
    </
CATEGORY>
  <
CATEGORY Name="Messages">
    <
Entry Name="doorlock1">No need to go back outside...</Entry>
  </
CATEGORY>
<
CATEGORY Name="Inventory">
    <
Entry Name="ItemName_KeyNAME">KeyName</Entry>
    <
Entry Name="ItemDesc_KeyNAME">KeyDesc</Entry>
  </
CATEGORY>
   </
LANGUAGE

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 05-01-2013, 12:36 PM by PutraenusAlivius.)
05-01-2013, 12:36 PM
Find


Messages In This Thread
RE: Key Doesn't Unlock Door! - by PutraenusAlivius - 05-01-2013, 12:36 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 12:49 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 12:54 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:02 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:05 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:09 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:12 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:14 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:16 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:39 PM
RE: Key Doesn't Unlock Door! - by Kullin - 05-01-2013, 01:17 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:19 PM



Users browsing this thread: 1 Guest(s)