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
I've been at it for hours! thx