Frictional Games Forum (read-only)
[SCRIPT] monster spawning after unlocking door?[SOLVED] - 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: [SCRIPT] monster spawning after unlocking door?[SOLVED] (/thread-24553.html)



monster spawning after unlocking door?[SOLVED] - xjonx - 02-05-2014

How do you make a monster spawn when unlocking a door? Yes, I know how to spawn one when picking up a item, but I want to know how to do it when unlocking a door. Is it possible?
EDIT: Solved thanks to Mudbill. Hes a cool guy go check his YouTube channel: http://www.youtube.com/user/MrMudbill


RE: monster spawning after unlocking door? - Wapez - 02-05-2014

A perfect place to find all the functions you need. There's also a lot of good tutorials in the wiki.

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


RE: monster spawning after unlocking door? - Mudbill - 02-05-2014

I'm gonna guess you're unlocking the door with a key? If that is the case, just add the SetEntityActive script inside that code block, next to SetSwingDoorLocked.


RE: monster spawning after unlocking door? - xjonx - 02-07-2014

(02-05-2014, 11:53 PM)Mudbill Wrote: I'm gonna guess you're unlocking the door with a key? If that is the case, just add the SetEntityActive script inside that code block, next to SetSwingDoorLocked.
Thnaks! Smile
PS: I like your youtube channel Smile
PSS: going to subscribe Big Grin