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
How do I use void ChangeMap? [SOLVED]
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#5
RE: How do I use void ChangeMap?

(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)

[Image: 25F7U37.png]
08-07-2012, 03:38 AM
Website Find


Messages In This Thread
How do I use void ChangeMap? [SOLVED] - by Melvin - 08-07-2012, 02:59 AM
RE: How do I use void ChangeMap? - by Adny - 08-07-2012, 03:05 AM
RE: How do I use void ChangeMap? - by Melvin - 08-07-2012, 03:17 AM
RE: How do I use void ChangeMap? - by Melvin - 08-07-2012, 03:38 AM
RE: How do I use void ChangeMap? - by Adny - 08-07-2012, 03:41 AM
RE: How do I use void ChangeMap? - by Melvin - 08-07-2012, 03:49 AM



Users browsing this thread: 1 Guest(s)