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
AddEntityCollideCallBack(): Support Needed!
Watskeeee Offline
Junior Member

Posts: 8
Threads: 3
Joined: Jun 2012
Reputation: 0
#1
AddEntityCollideCallBack(): Support Needed!

void OnStart()
{
AddUseItemCallback("", "key01", "doorroom01", "KeyOnDoor", true);
AddUseItemCallback("", "key02", "doorroom02", "KeyOnDoor", true);
AddEntityCollideCallback("Player","RoomofSecretsArea","CollideRoomTwo","true", 1);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("doorroom01", true, true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("doorroom01", false, true);
PlaySoundAtEntity("", "unlock_door", "doorroom01", 0, false);
RemoveItem("key01");
}


void keyfunc(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1", true);
StartPlayerLookAt("servant_brute_1", 15, 15, "");
AddTimer("monstertimer", 2, "monstertimer");
ShowEnemyPlayerPosition("servant_brute_1");

}


void monstertimer(string &in asTimer)
{
StopPlayerLookAt();
}


Trying to make the door shut behind me, yet it comes up with the error;

FATAL ERROR: Could not load script file 'custom_stories/Amnesia - Hour of Twilight/maps/00_example.hps'!
main (5,1): ERR: No matching signatures to
'AddEntityCollideCallBack(string@&, string@&, string@&,const uint)'

Tried for an hours or two to fix this and no progress has been made..
06-19-2012, 02:19 PM
Find


Messages In This Thread
AddEntityCollideCallBack(): Support Needed! - by Watskeeee - 06-19-2012, 02:19 PM



Users browsing this thread: 1 Guest(s)