active monster when opening a door - 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: active monster when opening a door (/thread-11721.html) |
active monster when opening a door - Kainzor - 12-06-2011 cant find.... havent looked much kinda buzy... but for those who are not can u give me script how to active a monster whn opening a door RE: active monster when opening a door - Your Computer - 12-06-2011 By opening do you mean unlocking? RE: active monster when opening a door - Kainzor - 12-06-2011 i mean just open.. just open normaly....and give me script unlocking too is it pretty much the same as u script the key? RE: active monster when opening a door - Your Computer - 12-06-2011 (12-06-2011, 05:41 PM)Kainzor Wrote: i mean just open.. just open normaly....and give me script unlocking too I won't be providing you with a script, just the concept; and you already have an unlocking door script in your other thread. You're going to need to place a Script area in front of the door, in the direction that the door opens. All you would need to do then is add an entity collide callback to detect whether or not the door collided with the area. In the callback you simply activate the monster. All script functions can be found here: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions You're going to need to use AddEntityCollideCallback and SetEntityActive. RE: active monster when opening a door - Kainzor - 12-06-2011 thanks |