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
LevelDoor interaction text
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#1
LevelDoor interaction text

For some reason I am having trouble calling up text to appear on the screen when the player interacts with a level door. It works fine when it is set to work with a non-level door, but for some reason level doors do not work.

what I have:

in the extra_lang file:

<CATEGORY Name="Doors">
<Entry Name="FL">Firmly Locked</Entry>
</CATEGORY>

Script:

void Locked(string &in asEntity)
{
if(GetSwingDoorLocked(asEntity) == true) SetMessage("Doors","FL",0);
}

and of course the PlayerInteractCallBack field of the door object in the map is set to "Locked."

This should work but I can't figure out why it isn't...

08-16-2011, 08:14 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: LevelDoor interaction text

Level Doors' locked text can be arranged on Level Editor.

08-16-2011, 08:22 PM
Website Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#3
RE: LevelDoor interaction text

O.o why do I not know of this? how would I go about that?

08-16-2011, 10:59 PM
Find
darkside Offline
Junior Member

Posts: 20
Threads: 2
Joined: Aug 2011
Reputation: 0
#4
RE: LevelDoor interaction text

click on the level door -> entity -> LockedTextCat/Entry.

Snowy background, anyone?
Now, where was that grunt with the santa hat ....
08-20-2011, 11:05 AM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#5
RE: LevelDoor interaction text

How does that work? You enter the entry where its found in the lang file, or you just enter the text you want there? Also, is it just "TextEntry" because I cant find a "LockedTextEntry"

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-20-2011, 03:33 PM
Website Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: LevelDoor interaction text

No, they have to be defined in your lang file.

08-20-2011, 04:01 PM
Website Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#7
RE: LevelDoor interaction text

So "TextEntry" is the entry name they are under... Gotcha! Thanks!

PS: To the "OP" sorry for kinda taking over your topic x)

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-20-2011, 04:06 PM
Website Find




Users browsing this thread: 1 Guest(s)