Frictional Games Forum (read-only)
No monster spawn - 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: No monster spawn (/thread-9614.html)



No monster spawn - Synestral - 08-06-2011

Ok, so im trying to make it so that when a key is picked up, a monster spawns. everything goes well, but the monster never spawns. this is the code i have.

Code:
void OnStart()
{
SetEntityPlayerInteractCallback("Monster_Key_1", "Spawn_Monster", true);
}

void Spawn_Monster(string &in entity)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_grunt_1", "Node_1", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_2", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_3", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_4", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_5", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_6", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_5", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_4", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_3", 0,"");
AddEnemyPatrolNode("servant_grunt_1", "Node_2", 0,"");
}

void MosterEnd(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("servant_grunt_1", false);
}



RE: No monster spawn - Apjjm - 08-06-2011

Is your enemy called "servant_brute_1" or "servant_grunt_1"? you are activating one and adding patrol nodes to the other?


RE: No monster spawn - Synestral - 08-06-2011

(08-06-2011, 01:50 AM)Apjjm Wrote: Is your enemy called "servant_brute_1" or "servant_grunt_1"? you are activating one and adding patrol nodes to the other?

wow... cant belive i missed that... thaks for pointing it out!