Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load up a new world
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#1
Load up a new world

What is the void to exit the current map and go to a different one (Sorta like clicking on a level door then a new map comes up)

Special Custom Story for 2 special people!

[Image: LWFcAl]


07-02-2012, 05:11 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Load up a new world

Are you talking about

void OnLeave()
{
//yada yada
}

vv Scroll down!
(This post was last modified: 07-02-2012, 06:39 AM by Statyk.)
07-02-2012, 06:01 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#3
RE: Load up a new world

I think he means ChangeMap()

07-02-2012, 06:32 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: Load up a new world

(07-02-2012, 06:32 AM)SilentStriker Wrote: I think he means ChangeMap()
Ah, I think you're right!

void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

Immediatly loads another map.

asMapName - the file to load
asStartPos
- the name of the StartPos on the next map
asStartSound
- the sound that is played when the change starts
asEndSound
- the sound that is played when the new map is loaded
(This post was last modified: 07-02-2012, 06:38 AM by Statyk.)
07-02-2012, 06:38 AM
Find




Users browsing this thread: 1 Guest(s)