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 Normal Door 'Locked Text
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#3
RE: Normal Door 'Locked Text

(02-13-2013, 09:24 PM)BeeKayK Wrote: in the interaction tab (in the editor, when you click the door) write "DoorLocked".

Then in your script write this function:

void DoorLocked(string &in asEntity)
{
if(GetSwingDoorLocked(asEntity)
{
SetMessages("MessageCategory", "MessageEntry", 0);
}
}

Change MessageCategory and MessageEntry to whatever is in your .lang file under messages.

You can now write "DoorLocked" in every interaction tab (In swingdoors), to make it set the message if it's locked.


i got this? if im correct?

void DoorLocked(string &in asEntity)
{
if(GetSwingDoorLocked(asEntity)
{
SetMessages("Messages", "dinnerdoor", 0);
}
}

LANG:

<Entry Name="dinnerdoor">I need a key to enter the Dining Room.</Entry>

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
02-13-2013, 09:31 PM
Website Find


Messages In This Thread
RE: Normal Door 'Locked Text - by VeNoMzTeamHysterical - 02-13-2013, 09:31 PM



Users browsing this thread: 1 Guest(s)