Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help With a Monster
Marche100 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Aug 2011
Reputation: 0
#6
RE: Help With a Monster

(08-20-2011, 10:39 PM)Elven Wrote: I hope you know at least basic scripting. If you do then basically use this way. For example you name your monster as "monster" and you create area where monster must stand in the end as "monsterStand" (script area). Then onStart() you put:

void AddEntityCollideCallback("monster", "monsterStand", "monsterDelete", true, 0);

And then below you put:

void monsterDelete(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", false);
}

This would be easiest method to force it to disappear Smile

That would delete the monster as soon as he comes near the closet, though, assuming that I put the area near the closet, which would be the most logical place to put it.. I want him to at least stand around a little bit there in case the player would be stupid enough to stand outside the closet so that the monster could maul him.

Is there a way I could do that, or am I wrong in what I said above and it would work out the way I want it to?

I'll try it first, though, just so I give it a shot and see how it works out. I do know how to implement something that basic, thankfully. Tongue

Edit: Ok, I tried your method, and it's good and it works fine, but I'm having a bit of trouble making it go exactly the way I want it to. I'm trying to get it so that even if you flatten yourself against the closet the monster won't disappear and can kill you, but if you go into the closet he'll disappear with 100% certainty. I'm still working on it though, so I'll try to make the area box a bit bigger in the meantime.

(This post was last modified: 08-20-2011, 11:09 PM by Marche100.)
08-20-2011, 10:53 PM
Find


Messages In This Thread
Help With a Monster - by Marche100 - 08-20-2011, 09:20 PM
RE: Help With a Monster - by Your Computer - 08-20-2011, 09:56 PM
RE: Help With a Monster - by Marche100 - 08-20-2011, 10:19 PM
RE: Help With a Monster - by Elven - 08-20-2011, 10:15 PM
RE: Help With a Monster - by Elven - 08-20-2011, 10:39 PM
RE: Help With a Monster - by Marche100 - 08-20-2011, 10:53 PM
RE: Help With a Monster - by Elven - 08-20-2011, 10:57 PM
RE: Help With a Monster - by Marche100 - 08-20-2011, 11:12 PM
RE: Help With a Monster - by Rownbear - 08-20-2011, 11:26 PM
RE: Help With a Monster - by Elven - 08-20-2011, 11:31 PM
RE: Help With a Monster - by Marche100 - 08-20-2011, 11:37 PM
RE: Help With a Monster - by Your Computer - 08-20-2011, 11:41 PM
RE: Help With a Monster - by Elven - 08-20-2011, 11:43 PM
RE: Help With a Monster - by Marche100 - 08-20-2011, 11:44 PM
RE: Help With a Monster - by Rownbear - 08-20-2011, 11:46 PM
RE: Help With a Monster - by Marche100 - 08-20-2011, 11:50 PM
RE: Help With a Monster - by Elven - 08-21-2011, 01:07 AM



Users browsing this thread: 1 Guest(s)