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
Swing Door Locked Text?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Swing Door Locked Text?

Oh okay - Swing Doors.

What we do here is use SetMessage();
We check if the door is locked, and then if so, display a message, otherwise, we do not.

This should work, if placed in the appropriate callback function. The one we would use is SetPlayerEntityInteractCallback, or PlayerInteractCallback as used in the Level Editor.

PHP Code: (Select All)
if(GetSwingDoorLocked(<door_name>) == true)
{
SetMessage("Sign""CellarDoor"0);


Using this, we find out if the door is locked. If so, it will display the message in CellarDoor. Just make sure to change <door_name> to the name of your door in the Level Editor, from the General tab.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
09-23-2014, 03:51 PM
Find


Messages In This Thread
Swing Door Locked Text? - by Amnesiaplayer - 09-23-2014, 02:29 PM
RE: Swing Door Locked Text? - by Romulator - 09-23-2014, 02:51 PM
RE: Swing Door Locked Text? - by Amnesiaplayer - 09-23-2014, 03:41 PM
RE: Swing Door Locked Text? - by Romulator - 09-23-2014, 03:51 PM
RE: Swing Door Locked Text? - by Mudbill - 09-23-2014, 03:54 PM
RE: Swing Door Locked Text? - by Amnesiaplayer - 09-23-2014, 04:21 PM
RE: Swing Door Locked Text? - by Neelke - 09-23-2014, 04:27 PM
RE: Swing Door Locked Text? - by Amnesiaplayer - 09-23-2014, 04:29 PM
RE: Swing Door Locked Text? - by Neelke - 09-23-2014, 05:01 PM
RE: Swing Door Locked Text? - by Amnesiaplayer - 09-23-2014, 05:06 PM
RE: Swing Door Locked Text? - by Neelke - 09-23-2014, 07:07 PM
RE: Swing Door Locked Text? - by Amnesiaplayer - 09-24-2014, 06:15 AM
RE: Swing Door Locked Text? - by Romulator - 09-24-2014, 07:35 AM
RE: Swing Door Locked Text? - by Mudbill - 09-24-2014, 07:53 AM
RE: Swing Door Locked Text? - by Amnesiaplayer - 09-24-2014, 01:02 PM



Users browsing this thread: 1 Guest(s)