Frictional Games Forum (read-only)
[LANG] message if door is locked - 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: [LANG] message if door is locked (/thread-21627.html)



message if door is locked - Darkboot - 05-26-2013

Yeah.. where can i find a tutorial on this? :S Can't find


RE: message if door is locked - OriginalUsername - 05-26-2013

It's not that hard, here it is:

PHP Code:
void OnStart()
{
SetEntityPlayerInteractCallback("Door_name""Func1"false);
}

void Func1(string &in asEntity)
{
if(
GetSwingDoorLocked("Door_name")==true)
{
SetMessage("Category_name""Entry_name"1);
}
else
{
//do whatever you want if it's unlocked
}




RE: message if door is locked - Romulator - 05-26-2013

Or you can look at this Smile
http://wiki.frictionalgames.com/hpl2/tutorials/script/adding_messages_to_locked_doors