The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chase Problem.. help?
Bonehead Offline
Member

Posts: 50
Threads: 12
Joined: Apr 2013
Reputation: 1
#1
Chase Problem.. help?

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? Sad
(This post was last modified: 05-20-2013, 05:56 PM by Bonehead.)
05-20-2013, 04:59 PM
Find


Messages In This Thread
Chase Problem.. help? - by Bonehead - 05-20-2013, 04:59 PM
RE: Chase Problem.. help? - by Bridge - 05-20-2013, 05:13 PM
RE: Chase Problem.. help? - by Bonehead - 05-20-2013, 05:20 PM
RE: Chase Problem.. help? - by Bridge - 05-20-2013, 05:30 PM
RE: Chase Problem.. help? - by Bonehead - 05-20-2013, 05:51 PM
RE: Chase Problem.. help? - by Bridge - 05-20-2013, 06:07 PM



Users browsing this thread: 1 Guest(s)