Frictional Games Forum (read-only)

Full Version: Door Callback Doesnt Work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, how do I make it so that when you grab a swing door it triggers a function?
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