Frictional Games Forum (read-only)
Door Callback Doesnt Work - 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 Callback Doesnt Work (/thread-8453.html)



Door Callback Doesnt Work - Henriksen - 06-04-2011

Hi, how do I make it so that when you grab a swing door it triggers a function?


RE: Door Callback Doesnt Work - ferryadams10 - 06-04-2011

void OnStart()
{
SetEntityPlayerInteractCallback("Name of the entity (in your case name of the door)", "Function Name", Whether callback gets removed after it has been called could be true or false);
}

void FunctionName(string &in entity)
{
//Put here the things to happen when interacting with the door
}


Kind Regards,
The guy you kicked out of your story build team.Wink
Ferry Adams