Frictional Games Forum (read-only)
Door opens when take item - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Door opens when take item (/thread-8522.html)



Door opens when take item - miguli - 06-10-2011

How to make that if door is locked, but you take example: note then door unlock's?

Thanks for help people!
(hopelly you understand)
btw: is anyone used custom map name Hope?


RE: Door opens when take item - ferryadams10 - 06-10-2011

void OnStart()
{
SetEntityPlayerInteractCallback("Entity name", "MyFunc", true);
}

void MyFunc(string &in Entity)
{
//Put here what you want to happen when interacting with the item ;P
}