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
.Lang File Help Need help displaying door is locked on non-exit doors.
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#2
RE: Need help displaying door is locked on non-exit doors.

You need to make an interact callback
PHP Code: (Select All)
SetEntityPlayerInteractCallback(stringasNamestringasCallbackbool abRemoveOnInteraction); 
And then use
PHP Code: (Select All)
SetMessage(stringasTextCategorystringasTextEntryfloat afTime); 
to display the message you want to appear.

Example:

Quote:void OnStart()
{
SetEntityPlayerInteractCallback("DOORNAME", "CALLBACK", RUN_CODE_EACH_TIME_YOU_INTERACT);
}

void CALLBACK(string &in asEntity)
{
SetMessage("Messages", "DoorLocked", 3.0f);
}

Creator of The Dark Treasure.
02-12-2012, 12:28 PM
Website Find


Messages In This Thread
RE: Need help displaying door is locked on non-exit doors. - by Linus Ågren - 02-12-2012, 12:28 PM



Users browsing this thread: 2 Guest(s)