Frictional Games Forum (read-only)
Monster Appear on Pickup - 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: Monster Appear on Pickup (/thread-9439.html)



Monster Appear on Pickup - Angerpull - 07-28-2011

Hello, can anyone help me with this? I am trying to make the player pickup a key and then a monster spawns. I pickup the key and no monster... Help Big Grin?

Lawllulz


RE: Monster Appear on Pickup - Kyle - 07-28-2011

Name of example key: "Key01"
Name of example monster: "MonsterName"

Remember that there can only be one of the same function, so if you already have a void OnStart() function, put the SetEntityPlayerInteractCallback into the one you had at first. Wink

Code:
void OnStart()
{
     SetEntityPlayerInteractCallback("Key01", "Func01", true);
}
void Func01(string &in asEntity)
{
     SetEntityActive("MonsterName", true);
}