Okay guys, I gave it a shot, and here's what my script looks like now, it doesn't work though.. Could you correct it?
void OnStart()
{
if(GetLocalVarInt("Var_coals")==1)
{
PlayMusic("10_puzzle01.ogg", false, 0.7, 0.1, 10, false);
SetLightVisible("hanging_lantern_ceiling_chain_2", false);
}
AddEntityCollideCallback("Coal_1", "CoalArea", "CoalFunc", true, 1); //CoalArea is the area in the furnace
}
void CoalFunc(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("Var_coals", 1);
}
I'm just trying with one peice of coal right now, just to make it work. Please help!