(08-07-2012, 03:27 AM)Harthex Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "PlayerSleep", "LOLOLFUNCNUMBERONE", 1, true);
}
void LOLOLFUNCNUMBERONE(string &in asParent, string &in asChild, int alState)
{
ChangeMap("Floor_2_Night.map", "SpawnAfterTeleport", "", "");
}
Whatever you use in the bolded area AddEntityCollideCallback("Player", "PlayerSleep", "LOLOLFUNCNUMBERONE", 1, true);
is used here in the bolded area
void LOLOLFUNCNUMBERONE(string &in asParent, string &in asChild, int alState)
{
ChangeMap("Floor_2_Night.map", "SpawnAfterTeleport", "", "");
}
Hey man, thanks for the reply.
I'm still having an FATAL ERROR though. It says
Could not load script file blablalba maps/Floor_2_Day.hps'!
ExecuteString (1, 1) : ERR : No matching signatures to 'OnLeave()'
main (6, 1) : ERR : No matching signatures to 'AddEntityCollideCallback(string@&, string@&, string@&, const uint, const bool)'
My guess is that its the script where the problem is at, I can't seem to fix it.
////////////////////////////
// Run when first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
AddEntityCollideCallback("Player", "PlayerSleep", "FunctionOne", 1, true);
}
void FunctionOne(string &in asParent, string &in asChild, int alState)
{
ChangeMap("Floor_2_Night.map", "SpawnAfterTeleport", "", "");
}
void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Beforethestorm.ogg", true, 0.4, 8, 1, true);
}
The other one is a musicfile.
pls fix 'em bro(s)