I don't understand why I'm getting this.. heres the script..
void OnStart()
{
SetEntityPlayerInteractCallback("lantern_1", "ActivateMonster", true);
AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1);
SetEntityCallbackFunc("key1", "OnPickup");
AddUseItemCallback("", "key1", "dining_door", "UsedKeyOnDoor", true);
AddUseItemCallback("", "key2", "secret_door", "UseKeyOnDoor", true);
SetEntityPlayerInteractCallback("key2", "ActivateGrunt", true);
SetEntityPlayerInteractCallback("tome", "ActivateRun", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster(string &in item)
{
SetEntityActive("servant_brute_1", true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_15", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_10", 0, "");
}
void ActivateGrunt(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_23", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_25", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
SetEntityActive("armour_nice_complete_7", false);
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door_2", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("armour_nice_complete_8", true);
SetEntityActive("armour_nice_complete_7", true);
SetEntityActive("armour_nice_complete_6", false);
SetEntityActive("armour_nice_complete_5", false);
PlaySoundAtEntity("", "impact_wood_heavy_med3.snt", "armour_nice_complete_8", 0.1f, true);
PlaySoundAtEntity("", "impact_wood_heavy_med3.snt", "armour_nice_complete_7", 0.1f, true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("dining_door", false, true);
PlaySoundAtEntity("", "unlock_door", "dining_door", 0, false);
RemoveItem("key1");
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("secret_door", false, true);
PlaySoundAtEntity("", "unlock_Door", "secret_door", 0, false);
RemoveItem("key2");
}
void ActivateRun(string &in Item)
{
SetEntityActive("servant_grunt_2" true);
ShowEnemyPlayerPosition("servant_grunt_2", true);
}
Here is the Error: No Matching Signatures to 'showenemyplayerposition(string@&, const bool)'
What am I doing wrong?