I'm a doctor, not a mechanic
Stop statement
From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from Stop)
The stop statement is only allowed in state code and immediately halts state code execution without leaving the state. To restart state code again, you need to call the GotoState() function with the desired new state and/or label name.
To stop function code execution use the return statement instead.
Syntax[edit]
To halt state code execution, simply use:
stop;
That's all.
Declarations | Preprocessor • Classes • Interfaces • Cpptext • Constants • Enums • Structs • Variables (Metadata) • Replication block • Operators • Delegates • Functions • States • Defaultproperties (Subobjects) |
---|---|
Types | bool • byte • float • int • name • string • Object • Class • Enums • Structs (Vector ⋅ Rotator ⋅ Quat ⋅ Color) • Static arrays • Dynamic arrays • Delegates • Typecasting |
Literals | Boolean • Float • Integer • Names • Objects (None ⋅ Self) • Vectors • Rotators • Strings |
Flow | GoTo • If • Assert • Return • Stop • Switch • While • Do...Until • For • ForEach • Break • Continue |
Specifiers | Super • Global • Static • Default • Const |
UnrealScript | Syntax • .UC • .UCI • .UPKG • Comments • #directives • Native |