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
#16
RE: Help With a Monster

(08-20-2011, 11:46 PM)Rownbear Wrote: void Monsterspawn(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddTimer("Timer", 20.0, "MonsterGone");
}

void MonsterGone(string&in asTimer)
{
SetEntityActive("servant_grunt_1", false);
}

All of this OnStart, and this is the simplest way of doing it. by adding more sounds and maybe reactions from daniel will make it better Smile

EDIT: Make the monster harmless and then take the time for how long he uses to come inside the room and then leave. and there you go. also the 20.0 is the amount of seconds in the script. I just randomly put 20 seconds.

Actually, I don't have the monster spawn just as the player enters the map, so I wouldn't put the part about the monster being active on OnStart, so I put it where I think it goes. I'll give it a try and post back once I see how it works.

Also, I took a look at Daniel's Room and what they did with that. Boy, that was complicated. I don't think that's exactly what I was looking for, but thanks. I might be able to use looking into maps from the actual game later on to help.

Edit: Alright, it didn't work the first time, but I stuck it in a different place and it works flawlessly every time.

I want to thank all of you so much for your help. I've been stuck on this problem all day, and now I have a foolproof method for every monster in my game in terms of despawning it. So again, thanks a lot! I'll be sure to use everything you've all taught me while I make my custom story (and future custom stories).
(This post was last modified: 08-21-2011, 12:01 AM by Marche100.)
08-20-2011, 11:50 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)