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
Setting a message when interacting with a door
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#8
RE: Setting a message when interacting with a door

void OnStart(){
SetEntityPlayerInteractCallback("door", "showlockedmessage", false);
}

void showlockedmessage(string &in asEntity){
SetMessage("Message", "door", 0);
}

in your .lang file:

<CATEGORY Name="Message">
<Entry Name="door">The door is locked</Entry>
</CATEGORY>

The Well: Descent - Take a look at it!
(This post was last modified: 07-26-2011, 07:05 PM by MrCookieh.)
07-26-2011, 07:05 PM
Find


Messages In This Thread
RE: Setting a message when interacting with a door - by MrCookieh - 07-26-2011, 07:05 PM



Users browsing this thread: 1 Guest(s)