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
Area triggers?
stormtrooper106 Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2013
Reputation: 0
#1
Area triggers?

Okay so I have been making my very first map, and I want to have the player walk across some triggers to set off a grunt to break down a door and run out of the room it was previously in and start to chase the player, how would I go about this in scripting?
(This post was last modified: 06-20-2013, 01:36 AM by stormtrooper106.)
06-19-2013, 11:51 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Area triggers?

What do you mean by "Some triggers"?

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-20-2013, 01:46 AM
Find
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#3
RE: Area triggers?

You can find full documentation at the wiki.

I think what you needs is a "Collide Callback."
(This post was last modified: 06-20-2013, 02:36 AM by Tomato Cat.)
06-20-2013, 02:36 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Area triggers?

First you set it inactive in the editor.
Then you create a script area, where the player is supposed to be, when the monster spawns.
What you have to do is create a collide callback where you set the monster active.
Everything you need is in the wiki, mentioned above

Trying is the first step to success.
06-20-2013, 12:45 PM
Find
stormtrooper106 Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2013
Reputation: 0
#5
RE: Area triggers?

Well thank you all for giving some responses. I believe I figured some of it out. I will read more on the wiki. Though, I do have one more question, but I will ask that in another post.
06-20-2013, 02:47 PM
Find




Users browsing this thread: 1 Guest(s)