05-26-2013, 12:27 PM
05-26-2013, 12:34 PM
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
}
}
05-26-2013, 12:56 PM
Or you can look at this
http://wiki.frictionalgames.com/hpl2/tut...cked_doors
http://wiki.frictionalgames.com/hpl2/tut...cked_doors