![]() |
Make Enemies disappear? - 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: Make Enemies disappear? (/thread-12520.html) |
Make Enemies disappear? - Schinki - 01-10-2012 Hello guys, first of all: I'm sorry if my English is bad ![]() I just started to create my first little Custom Story and I have already looked up for a script to spawn an enemy if you step on a script area. Now I want to go back, let the enemy step on another script area and make him disappear. Right now it looks like this: "void OnStart() { AddEntityCollideCallback("Player" , "Schreck" , "MonsterFunc1" , true , 1); } void MonsterFunc1(string &in asParent , string &in asChild , int alState) { SetEntityActive("Monster1" , true); }" Could anyone please complete this script for me? I would be very thankful. RE: Make Enemies disappear? - Elven - 01-10-2012 void OnStart() { AddEntityCollideCallback("Player" , "Schreck" , "MonsterFunc1" , true , 1); AddEntityCollideCallback(" Monster1" , "*another script area name*" , "MonsterFunc3" , true , 1); } void MonsterFunc1(string &in asParent , string &in asChild , int alState) { SetEntityActive("Monster1" , true); } void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{ SetEntityActive("Monster1" , false); } RE: Make Enemies disappear? - SilentStriker - 01-10-2012 (01-10-2012, 07:54 PM)Elven Wrote:AddEntityCollideCallback("Monster1" , "*another script area name*" , "MonsterFunc2" , true , 1); ![]() RE: Make Enemies disappear? - Elven - 01-10-2012 Oh right, using laptop, so I made error ![]() RE: Make Enemies disappear? - Schinki - 01-10-2012 Thank you very much guys, this helped me alot. Seems like everything is working now :) RE: Make Enemies disappear? - Elven - 01-10-2012 Glad that I was helpful and good luck! |