Frictional Games Forum (read-only)

Full Version: case 6: ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello peoples, Smile

I was looking through some scripts of the original Amnesia levels and I came across this
Code:
break;
case 6:
(Map: 00_rainy_hall.map Line: 1069)

And I have no idea what it does Angry can you please explain to me?
Put it simply as I am simple Big Grin .
It's a switch case statement.
What it simply does is checking variable and if it's 6, do what case 6 says.
http://www.cplusplus.com/doc/tutorial/control/
It's a part of a "switch".

http://wiki.frictionalgames.com/hpl2/tut.../sequences

If you scroll down, you'll see a switch. Also look it up on the search bar located near the bottom of the Frictional Games Forum page of Custom Stories & Modifications. Smile


Edit: Ninja'd! xD