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
How to make encounters?
Ethril Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2011
Reputation: 0
#14
RE: How to make encounters?

I tried doing the same as Sacroid with trying to make a zombie spawn if an area of type script is touched but no matter how I do so he just won't spawn? I have his active boxed ticked off. I have unticked all the boxes in the area section of the Script Area.

here is my script :< Btw corpseroom = the script area, cannibal = name of the monster




void onStart()
{
AddUseItemCallback("", "strangekey_1", "cellar_wood01_2", "UsedKeyOnDoor", true);

AddEntityCollideCallback("Player", "corpseroom", "Collidecorpseroom", true, 1);
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("cellar_wood01_2", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_wood01_2", 0, false);
RemoveItem("strangekey_1");
}



void onEnter()
{

}

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

void OnLeave()
{

}


could someone please tell me where I have gone wrong Sad I've been at it for hours! thx
01-12-2011, 07:53 AM
Find


Messages In This Thread
How to make encounters? - by sacroid - 09-15-2010, 12:40 AM
RE: How to make encounters? - by MulleDK19 - 09-15-2010, 02:53 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 06:26 AM
RE: How to make encounters? - by theDARKW0LF - 09-15-2010, 08:08 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 08:16 AM
RE: How to make encounters? - by jens - 09-15-2010, 08:21 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 08:25 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 02:21 PM
RE: How to make encounters? - by jens - 09-15-2010, 02:31 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 02:41 PM
RE: How to make encounters? - by Tony32 - 01-12-2011, 02:46 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 04:24 PM
RE: How to make encounters? - by jens - 09-15-2010, 05:01 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 05:11 PM
RE: How to make encounters? - by Ethril - 01-12-2011, 07:53 AM
RE: How to make encounters? - by Neatherblade - 01-12-2011, 08:54 PM



Users browsing this thread: 1 Guest(s)