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
Monster in wardrobe
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Monster in wardrobe

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?
07-03-2012, 10:55 PM
Find
himynamebob1 Offline
Member

Posts: 57
Threads: 12
Joined: Jun 2012
Reputation: 0
#2
RE: Monster in wardrobe

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


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

void monster(string &in asEntity)
{
  SetEntityActive("monstername", true);  
  }
07-03-2012, 11:01 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#3
RE: Monster in wardrobe

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

07-04-2012, 06:59 AM
Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#4
RE: Monster in wardrobe

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
07-04-2012, 03:36 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Monster in wardrobe

(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.

Tutorials: From Noob to Pro
07-04-2012, 03:40 PM
Website Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#6
RE: Monster in wardrobe

Thank you Big Grin

One more question: how can I make a painting removeable?
(This post was last modified: 07-04-2012, 04:27 PM by ooadrianoo.)
07-04-2012, 03:51 PM
Find




Users browsing this thread: 1 Guest(s)