Frictional Games Forum (read-only)

Full Version: How do you activate an entity after interacting with a door.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just a quick question. I was wondering if it was possible to set something from inactive to active when you open a door. Is there any way to do this or do i have to set an area and use a PlayerCollide thing?Thanks in advance for any advice!
This is development articles. In here there's surely a thread where someone explains you how to do it.

Post in development suppport, please.

Of course it's possible. It should be like this:

SetEntityPlayerInteractCallback("Door", "func1", true);

void func1(string &in asEntity)
{
SetEntityActive("Whateva", true);
}
(10-23-2012, 09:16 PM)The chaser Wrote: [ -> ]This is development articles. In here there's surely a thread where someone explains you how to do it.

Post in development suppport, please.

Of course it's possible. It should be like this:

SetEntityPlayerInteractCallback("Door", "func1", true);

void func1(string &in asEntity)
{
SetEntityActive("Whateva", true);
}
Oops, sorry wrong place! Thought I was still in development support.