The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script to add message to a locked swing door
Ninami Offline
Member

Posts: 59
Threads: 6
Joined: Feb 2012
Reputation: 2
#1
Script to add message to a locked swing door

Hey guys, been searching quite a while for a solution but I can't find it.

I have a swing door in a room which is locked. When you try to open it I want a message to appear, something like "The door is locked".

I tried the "SetLevelDoorLockedText" but I learned that it only works on level doors.

What do I script in order to do the exact same thing, but on swing doors?

Cheers Ninami
Now I tried adding:

SetEntityPlayerInteractCallback("Door_1", "LockedDoor", false);


void LockedDoor(string &in asEntity)
{
SetMessage("Messages", "DoorLocked", 2);
}

But nothing happens when I interact with the door.

AND, if this would work, it still would show the message even though the door was unlocked...right?
(This post was last modified: 02-04-2012, 01:43 PM by Ninami.)
02-04-2012, 11:14 AM
Find


Messages In This Thread
Script to add message to a locked swing door - by Ninami - 02-04-2012, 11:14 AM



Users browsing this thread: 1 Guest(s)