Stuff wont happen when I pick up the key. I got it working earlier with just the monster activate but I want the other things to happen aswell. can I use like a if entityactive to get the other stuff working?
void OnStart()
{
SetEntityPlayerInteractCallback("castle_key_1", "MonsterActivate3", true);
}
void MonsterActivate3(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_3", true);
SetEntityActive("castle_door_5", false);
SetEntityActive("castle_door_6", true);
SetSwingDoorLocked("castle_door_3", false, true);
PlaySoundAtEntity("LookAt_2", "15_bang.snt", "LookAt_2", 0, false);
PlaySoundAtEntity("guardian_distant3", "enabled.snt", "Player", 0,false);
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_5", 0, "");
}
Help appreciated