Frictional Games Forum (read-only)

Full Version: Level-changing doors??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Simple question:
How does one create one of those level-changing doors in the level editor?
You come up to it, you click on it, and level-changing script runs.
I couldn't find it on the wiki. Sounds like it should be there Sad
Entities > Doors > any door the the level_ prefix.
And what would the script look like?
(04-09-2012, 10:35 PM)FragdaddyXXL Wrote: [ -> ]And what would the script look like?

There is no script, you can choose which map you want it to load when you choose the level door. It should be under the entity tab, and then MapFile. It's really simple to do, and doesn't require any coding at all really.
(04-09-2012, 10:49 PM)Tekkie Wrote: [ -> ]
(04-09-2012, 10:35 PM)FragdaddyXXL Wrote: [ -> ]And what would the script look like?

There is no script, you can choose which map you want it to load when you choose the level door. It should be under the entity tab, and then MapFile. It's really simple to do, and doesn't require any coding at all really.
Thanks!


You can also change levels without the use of a level door, via the ChangeMap function.

Syntax:
ChangeMap("newlevel.map", "PlayerStartArea_1", dooropeningsound, doorclosingsound);