Frictional Games Forum (read-only)

Full Version: Monster Appear on Pickup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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);
}