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
How do i spawn grunt in closet?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#6
RE: How do i spawn grunt in closet?

Set the grunt inactive in level editor, resize the closet so the monster will fit in there. Put this in your .hps file for the map

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "MonsterCloset", true, 1);
}

void MonsterCloset(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt_name", true);
}

Put a ScriptArea near the closet.

01-06-2012, 04:03 AM
Find


Messages In This Thread
How do i spawn grunt in closet? - by Bramme - 01-06-2012, 01:11 AM
RE: How do i spawn grunt in closet? - by Statyk - 01-06-2012, 02:16 AM
RE: How do i spawn grunt in closet? - by flamez3 - 01-06-2012, 02:32 AM
RE: How do i spawn grunt in closet? - by Bramme - 01-06-2012, 03:29 AM
RE: How do i spawn grunt in closet? - by flamez3 - 01-06-2012, 04:03 AM
RE: How do i spawn grunt in closet? - by Bramme - 01-06-2012, 04:19 AM
RE: How do i spawn grunt in closet? - by Statyk - 01-06-2012, 04:34 AM
RE: How do i spawn grunt in closet? - by Bramme - 01-06-2012, 05:04 AM



Users browsing this thread: 1 Guest(s)