Frictional Games Forum (read-only)
Making an enemy 'exit' like in the map Daniel's Room. (Solved!) - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Making an enemy 'exit' like in the map Daniel's Room. (Solved!) (/thread-7394.html)

Pages: 1 2


RE: Making an enemy 'exit' like in the map Daniel's Room. (Help needed,) - Mina Darsh - 04-16-2011

Fixed it!

Started to compare "void MonsterFunc1" with "void GoPoof" as the first one worked, and noticed the following, GoPoof had nothing within the '()' and the latter function had "(string &in asParent , string &in asChild , int alState)".

So I added that to the GoPoof function and it worked! Though, could anyone tell me why this info is needed? It looks like unnecessary data to me, yet it is needed. Huh


RE: Making an enemy 'exit' like in the map Daniel's Room. (Solved!) - MrBigzy - 04-16-2011

GoPoof is an entity collide callback. It needs the parameters from that callback (the syntax for the function) to know what function it is.