Frictional Games Forum (read-only)
Monster in wardrobe - 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: Monster in wardrobe (/thread-16722.html)



Monster in wardrobe - ooadrianoo - 07-03-2012

You should open the door and the monster have to come out.

How can I put a monster in a wardrobe so, that the doors of the wardrobe don`t open.
Should I make the monster a little bit smaller? How can I make this?


RE: Monster in wardrobe - himynamebob1 - 07-03-2012

Here's a way, select the monster in the level editor and un-check active then use this code.


Code:
void OnStart()
    {
        SetEntityPlayerInteractCallback("closetname", "monster", false);
      }

void monster(string &in asEntity)
{
  SetEntityActive("monstername", true);  
  }



RE: Monster in wardrobe - SilentStriker - 07-04-2012

the false in SetEntityPlayerInteractCallback should be true or else it will call everytime you touch the closet (even if the.monster wont spawn again) its easier to have it removed when you call the callback for the first time Smile


RE: Monster in wardrobe - ooadrianoo - 07-04-2012

Doesn`t work :S If I touch the closet, there don`t spawn a monster.
http://s7.directupload.net/file/d/2941/lc6pzxi7_png.htm


RE: Monster in wardrobe - Your Computer - 07-04-2012

(07-04-2012, 03:36 PM)ooadrianoo Wrote: Doesn`t work :S If I touch the closet, there don`t spawn a monster.
http://s7.directupload.net/file/d/2941/lc6pzxi7_png.htm

You told the game to look for function servant_grunt_1. However, no such function can be seen in your code. The only relevant function is monster, but the code doesn't link the two.


RE: Monster in wardrobe - ooadrianoo - 07-04-2012

Thank you Big Grin

One more question: how can I make a painting removeable?