Frictional Games Forum (read-only)
LevelDoor interaction text - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: LevelDoor interaction text (/thread-9806.html)



LevelDoor interaction text - Homicide13 - 08-16-2011

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...


RE: LevelDoor interaction text - Tanshaydar - 08-16-2011

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


RE: LevelDoor interaction text - Homicide13 - 08-16-2011

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


RE: LevelDoor interaction text - darkside - 08-20-2011

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


RE: LevelDoor interaction text - JetlinerX - 08-20-2011

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"


RE: LevelDoor interaction text - Tanshaydar - 08-20-2011

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


RE: LevelDoor interaction text - JetlinerX - 08-20-2011

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

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