Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Info: Function Returns

You don’t have access to this lesson
Please register or sign in to access the course content.

The keyword return has the useful effect of stopping a function before it continues for the rest of its code, but that’s not all it can do! You also use return to have your function give back an output.

You can use this to make functions that calculate things for you and send back an answer, for example.