Okay, here is my issue:
I have a global variable script for note pick ups. It's the same script used in multiple maps. So far, it works in the first two, but not in the third. I've copied everything over exactly as it is in the others, but the functions just will not call, however the debug message does show up, so now I am majorly confused.
Why will the script work fine in the other two maps, but not this one?
I thought, maybe because this map has music already playing in the background and the others don't, but even then, wouldn't the AddPlayerSanity still call? But nothing happens except the debug message.
void NotePickUp(string &in asEntity, string &in type)
{
AddGlobalVarInt("Notes", 1);
if(GetGlobalVarInt("Notes") == 20)
{
SetEntityActive("blueboy", true);
}
PlayMusic("myuu_nightmares_loop", true, 0.5f, 0.0f, 1, false);
AddTimer("stoploop", 1.5f, "EndLoop");
AddPlayerSanity(25);
AddDebugMessage("DeBug", true);
}
void EndLoop(string &in asTimer)
{
StopMusic(1.5f, 1);
}