case 6: ? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: case 6: ? (/thread-9602.html) |
case 6: ? - X4anco - 08-05-2011 Hello peoples, I was looking through some scripts of the original Amnesia levels and I came across this Code: break; And I have no idea what it does can you please explain to me? Put it simply as I am simple . RE: case 6: ? - Tanshaydar - 08-05-2011 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/ RE: case 6: ? - Kyle - 08-05-2011 It's a part of a "switch". http://wiki.frictionalgames.com/hpl2/tutorials/script/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. Edit: Ninja'd! xD |