Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load up a new world
Author Message
Jagsrs28 Offline
Member

Posts: 101
Joined: Jun 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,609
Joined: Sep 2011
Reputation: 198
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
SilentStriker Offline
Posting Freak

Posts: 939
Joined: Jul 2011
Reputation: 39
Post: #3
RE: Load up a new world
I think he means ChangeMap()

07-02-2012 06:32 AM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,609
Joined: Sep 2011
Reputation: 198
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)