Frictional Games Forum (read-only)

Full Version: message if door is locked
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Yeah.. where can i find a tutorial on this? :S Can't find
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
}