Frictional Games Forum (read-only)
Area triggers? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Area triggers? (/thread-21871.html)



Area triggers? - stormtrooper106 - 06-19-2013

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?


RE: Area triggers? - PutraenusAlivius - 06-20-2013

What do you mean by "Some triggers"?


RE: Area triggers? - Tomato Cat - 06-20-2013

You can find full documentation at the wiki.

I think what you needs is a "Collide Callback."


RE: Area triggers? - FlawlessHappiness - 06-20-2013

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


RE: Area triggers? - stormtrooper106 - 06-20-2013

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.