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
?
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.
Code:
void OnStart()
{
SetEntityPlayerInteractCallback("Key01", "Func01", true);
}
void Func01(string &in asEntity)
{
SetEntityActive("MonsterName", true);
}