Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you activate an entity after interacting with a door.
MrDosht Offline
Junior Member

Posts: 43
Threads: 8
Joined: Oct 2012
Reputation: 0
#1
How do you activate an entity after interacting with a door.

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!

"Computers follow your orders not your intentions"- Anon
10-23-2012, 08:59 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: How do you activate an entity after interacting with a door.

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);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-23-2012, 09:16 PM
Find
MrDosht Offline
Junior Member

Posts: 43
Threads: 8
Joined: Oct 2012
Reputation: 0
#3
RE: How do you activate an entity after interacting with a door.

(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.

"Computers follow your orders not your intentions"- Anon
10-23-2012, 09:34 PM
Find




Users browsing this thread: 1 Guest(s)