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

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Door doesn't load next map when clicked on.
Author Message
NadTheBat Offline
Junior Member

Posts: 38
Joined: Aug 2011
Reputation: 0
Post: #1
Door doesn't load next map when clicked on.
It's basically what the title says: I have a door in my level, the name of the next map is in "MapFile" under the entity tab, and the correct StartPos is also set. Is there something I'm missing?
(This post was last modified: 08-14-2011 08:48 PM by NadTheBat.)
08-13-2011 10:25 AM
Find all posts by this user Quote this message in a reply
Delirium92 Offline
Senior Member

Posts: 268
Joined: Mar 2011
Reputation: 6
Post: #2
RE: Door doesn't load next map when clicked on.
(08-13-2011 10:25 AM)NadTheBat Wrote:  It's basically what the title says: I have a door in my level, the name of the next map is in "MapFile" under the entity tab, and the correct StartPos is also set. Is there something I'm missing?

did you make sure "MapFile" ends with .map

Quote:MapFile.map

[Image: rOQPbPF.gif]
08-13-2011 12:33 PM
Find all posts by this user Quote this message in a reply
NadTheBat Offline
Junior Member

Posts: 38
Joined: Aug 2011
Reputation: 0
Post: #3
RE: Door doesn't load next map when clicked on.
(08-13-2011 12:33 PM)Saffire192 Wrote:  
(08-13-2011 10:25 AM)NadTheBat Wrote:  It's basically what the title says: I have a door in my level, the name of the next map is in "MapFile" under the entity tab, and the correct StartPos is also set. Is there something I'm missing?

did you make sure "MapFile" ends with .map

Quote:MapFile.map

Yes, the MapFile does end with .map
08-13-2011 05:07 PM
Find all posts by this user Quote this message in a reply
GreyFox Offline
Member

Posts: 162
Joined: Jul 2011
Reputation: 2
Post: #4
RE: Door doesn't load next map when clicked on.
Are you sure it's a level door? Do you also have it in your Script that when you interact with that entity (Door) that it Changes the Map?

-Grey Fox

Current Project
Forgotten
08-13-2011 05:15 PM
Find all posts by this user Quote this message in a reply
NadTheBat Offline
Junior Member

Posts: 38
Joined: Aug 2011
Reputation: 0
Post: #5
RE: Door doesn't load next map when clicked on.
(08-13-2011 05:15 PM)GreyFox Wrote:  Are you sure it's a level door? Do you also have it in your Script that when you interact with that entity (Door) that it Changes the Map?

-Grey Fox

Ahh it has to be in the script? Could you possibly put what I need to put in there? Or a link at least, because I've looked everywhere and I haven't found a single thing on doors.
08-13-2011 07:24 PM
Find all posts by this user Quote this message in a reply
Rownbear Offline
Member

Posts: 157
Joined: Apr 2011
Reputation: 2
Post: #6
RE: Door doesn't load next map when clicked on.
No doesnt need to be a script if you use the leveldoors, just place one out, and click it, go to entity and you'll see a box there which says Mapfile. Then just click on it and find the map you want to load in your folders.

If you're not using the leveldoors and want to use normal doors you need to script a normal player interact script followed by
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

08-14-2011 03:08 PM
Find all posts by this user Quote this message in a reply
NadTheBat Offline
Junior Member

Posts: 38
Joined: Aug 2011
Reputation: 0
Post: #7
RE: Door doesn't load next map when clicked on.
(08-14-2011 03:08 PM)Rownbear Wrote:  No doesnt need to be a script if you use the leveldoors, just place one out, and click it, go to entity and you'll see a box there which says Mapfile. Then just click on it and find the map you want to load in your folders.

If you're not using the leveldoors and want to use normal doors you need to script a normal player interact script followed by
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

Could the problem be that the door is opened with a key? Because I use the key on the door and when I try to open it I still hear the locked sound.
08-14-2011 05:55 PM
Find all posts by this user Quote this message in a reply
NadTheBat Offline
Junior Member

Posts: 38
Joined: Aug 2011
Reputation: 0
Post: #8
RE: Door doesn't load next map when clicked on.
Well I figured out a solution. I'm going to put a regular door that locks and make a small hallway leading to the level door. Thanks for the help anyway guys.
08-14-2011 08:47 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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