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
Going to the next map
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#5
RE: Going to the next map

I assume you only typed the changemap twice, to show you tried both versions of the fucntion, because you definitely should only use one.

If Fade_Out and image trail are running that indicates bool EndOfTheMap works, but we have no indication that EndMapTimer works, which I am guessing is the problem. This function is being called by a timer, which has not been given a name, and I think one might be required.

Maybe try this:

PHP Code: (Select All)
bool EndOfTheMap(const tString &in asParent, const tString &in asChildint alState)
{
Effect_Fade_Out(2.0f); 
Effect_ImageTrail_FadeOut(1,10.0f);
Map_AddTimer("EndMapTimer",3.0f,"EndMapTimerFunc");    
return 
false;
}
void EndMapTimerFunc(const tString &in asTimer)
{
cLux_AddDebugMessage("changing map");
Map_ChangeMap("02_Generators.hpm""PlayerStartArea_1""""");    


I also just changed it to return false, so the function only calls once, and you dont need to disable the trigger area manually.
(This post was last modified: 10-20-2015, 02:28 PM by WALP.)
10-20-2015, 02:27 PM
Find


Messages In This Thread
Going to the next map - by Seneth - 10-20-2015, 01:29 PM
RE: Going to the next map - by WALP - 10-20-2015, 01:50 PM
RE: Going to the next map - by Seneth - 10-20-2015, 02:18 PM
RE: Going to the next map - by Mudbill - 10-20-2015, 02:22 PM
RE: Going to the next map - by WALP - 10-20-2015, 02:27 PM



Users browsing this thread: 1 Guest(s)