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 Help If statement + locked door
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#1
If statement + locked door

I feel like this is rather minor to make an entire thread over but I didn't find it anywhere else. Its rather simple what I'm trying to do. If a door is locked and it is interacted with, it displays a message.

if((GetSwingDoorLocked("cellar_wood01_3")==true) && (GetPropIsInteractedWith("cellar_wood01_3")==true))
{
SetMessage("Broke", "Jammed", 3);
}

That script creates no errors, but it does not display the message. I'm 99.99% positive its not a .lang issue either, as all the other messages work. The only thing I could come up with is that I shouldn't use GetPropIsInteractedWith but I don't know what else I could use.

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-20-2012, 10:44 PM
Find


Messages In This Thread
If statement + locked door - by DaAinGame - 03-20-2012, 10:44 PM
RE: If statement + locked door - by palistov - 03-21-2012, 12:02 AM
RE: If statement + locked door - by DaAinGame - 03-21-2012, 12:26 AM



Users browsing this thread: 1 Guest(s)