Return

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Return is used to force a script to stop processing from that line on. It does not JUST terminate the current block, it terminates everything within that script that is placed below the line in which Return is called, including any blocks.

Syntax

[help]
Return 

Notes

  • If the script uses a block that runs for multiple frames, such as GameMode, the script will be run again in the next frame. Return can be useful inside of If statements by allowing you to prevent the lines following the return from being processed.
  • Cannot be used inside a While / ForEach loop.

See Also