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
Script Help load another map
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#1
load another map

Hey, this is Another noob question :S but i found this

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


but somethings missing.. right? " changemap " is only a function so where can i find the other part that should be at the top of the script? Smile

or maybe i dont need Another thing but at least somewhere i should put the name of the door so it know when i open the door it should load Another map :S
(This post was last modified: 05-28-2013, 07:52 PM by Darkboot.)
05-28-2013, 07:50 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: load another map

You don't need the void. It's like any other function, just put it between the brackets and you're fine.

Edit: and if you want to use a door, simply place it and enter the name and startpos of the next map.
(This post was last modified: 05-28-2013, 08:04 PM by OriginalUsername.)
05-28-2013, 08:02 PM
Find
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#3
RE: load another map

ChangeMap("Me2.map", "start", "unlock_door", "close_door");

it loads the second map when i start the first map :/
i want it to load the other map when i open the door

"level_cellar_door" i Think it is i have placed out but anyway, if i open it wouthout a script i get a error and if i have the script it loads in the beginning (Spelling)
05-29-2013, 02:52 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#4
RE: load another map

You don't need the script when you're using a level door.. Just place the level door and enter the right names for your map and startpos. There are several tutorials on how to do this, just look it up in the wiki.
05-29-2013, 02:58 PM
Find
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#5
RE: load another map

sorry for bothering.. just figured out that.. xd
05-29-2013, 03:56 PM
Find




Users browsing this thread: 1 Guest(s)