Frictional Games Forum (read-only)
[SCRIPT] Door "It wont budge" - 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: [SCRIPT] Door "It wont budge" (/thread-13490.html)



Door "It wont budge" - BallisticDK - 02-21-2012

Hey, i need help to find out how to make a STD door say, "It wont budge" when i interact with it And is locked.

Ive Looked on google this forum and the Engine Script Page

Thanks you for you'r help


RE: Door "It wont budge" - Ninami - 02-21-2012

Somehow I doubt you checked the forum Tongue

Because I learned how to do this from many forum posts from here.


RE: Door "It wont budge" - BallisticDK - 02-21-2012

i looked afte and Searched
"It wont budge" but if you says you lerned it from there, then i didnt look close enoph Derp Spell fail


RE: Door "It wont budge" - Ninami - 02-21-2012

You will have to use this function:

void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);

Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.


And combine it with:

SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

So when the player "touches" the door, the message will appear.