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
"No matching signatures" scripting help
ThomJ Offline
Junior Member

Posts: 2
Threads: 2
Joined: Feb 2012
Reputation: 0
#1
"No matching signatures" scripting help

Hello

I am new to scripting and have been striving to understand the language in which these scripts are written. I understand the basics of how it works, but I am unable to pinpoint my errors. Here is the script for my Test story and the error associated whilst trying to load it:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "BSKey_1", "mansion_1", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "BSRoom", "CollideBSRoom", true, 1);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "Lights", "SuddenLights", true, 1);
}

void UseKeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}

void CollideBSRoom(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
SetSwingDoorLocked("mansion_1", true, true);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
}

void SuddenLights(string& asLightName, bool abVisible)
{
SetLightVisible("BoxLight_2", 0);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

And this is the error along with it:

main(43,1):INFO:Compiling void SuddenLights(string&inout, bool)
main(45,4):ERR:No matching signatures to 'SetLightVisable(string@&, const uint)'
main(45,4):INFO:Candidates are:
main(45,4):INFO:void SetLightVisable(string&in, bool)

Not too sure what to think of this..Everything works except for the light script =/
02-14-2012, 09:21 AM
Find


Messages In This Thread
"No matching signatures" scripting help - by ThomJ - 02-14-2012, 09:21 AM



Users browsing this thread: 1 Guest(s)