"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 =/
|