Frictional Games Forum (read-only)

Full Version: Door opens when take item
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
}