More then one monster? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: More then one monster? (/thread-8826.html) |
More then one monster? - Angerpull - 06-26-2011 Hello! New guy here, I am getting the hang of the scripting so far. But I wonder about one thing. How can I spawn more than one monster? I mean I walk into an area, and a monster spawns and runs towards me and is an hallusination. The script has done it's job. But how can I make another area do the same thing? I script my first one, it works exactly like I want it to. But is there a way to make a another area like this? The first area spawns a grunt, then a another area spawns a another grunt? I've tried and tried and no success. This is my Script. void OnStart() { AddEntityCollideCallback("Player" , "Monsterscare" , "MonsterFunc1" , true , 1); } void MonsterFunc1(string &in asParent , string &in asChild , int alState) { SetEntityActive("Monster_scare" , true); ShowEnemyPlayerPosition("Monster_scare"); GiveSanityDamage(10, true); } Where do I place the other script for the 2nd monster to appear? Please, help would be much appriciated. -Angerpull. RE: More then one monster? - WatzUpzPeepz - 06-26-2011 Just copy what you already did and change the names to suit the second monster Spoiler below!
RE: More then one monster? - Angerpull - 06-26-2011 Thank you so much! It works! I had no idea how to do it but you saved me ^^ |