Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

Difference between revisions of "UnrealScript reference"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (added extends to interface)
m (Added navbox, quicker to get there now.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
 
 
This group of articles describes [[UnrealScript]] language features at the source code level. It is no official document, but aims to cover all features of the UnrealScript language as it is implemented in the Unreal Tournament series. Note that there may be additional features in the implementation of UnrealScript in licensee games.
 
This group of articles describes [[UnrealScript]] language features at the source code level. It is no official document, but aims to cover all features of the UnrealScript language as it is implemented in the Unreal Tournament series. Note that there may be additional features in the implementation of UnrealScript in licensee games.
  
{{api-stub}}
+
==Key==
 
+
* <sup>1</sup> &ndash; '''Topic''' is relevant to [[Unreal Engine 1]].
[[UnrealScript source file format]]
+
* <sup>2</sup> &ndash; '''Topic''' is relevant to [[Unreal Engine 2]].
 
+
* <sup>2x</sup> &ndash; '''Topic''' is relevant to some builds of [[Unreal Engine 2]].
 
+
* <sup>3</sup> &ndash; '''Topic''' is relevant to [[Unreal Engine 3]].
* <sup>1</sup> &ndash; The above is available in [[Unreal Engine 1]].
+
* <sup>3+</sup> &ndash; '''Topic''' is relevant to later [[Unreal Engine 3]] versions, such as the [[UDK]].
* <sup>2</sup> &ndash; The above is available in [[Unreal Engine 2]].
+
* (no number) &ndash; '''Topic''' is relevant to all Unreal Engine generations.
* <sup>2s</sup> &ndash; The above is available in some builds of [[Unreal Engine 2]].
+
* <sup>3</sup> &ndash; The above is available in [[Unreal Engine 3]].
+
* <sup>3+</sup> &ndash; The above is available in later [[Unreal Engine 3]] versions, such as the [[UDK]].
+
* (no number) &ndash; The above is available in all Unreal Engine generations.
+
  
 
===Declarations===
 
===Declarations===
Line 19: Line 14:
 
::[[Extends clause]]
 
::[[Extends clause]]
 
::[[Within clause]] <sup>2,3</sup>
 
::[[Within clause]] <sup>2,3</sup>
:[[Interfaces]] <sup>2s,3</sup>
+
:[[Interfaces]] <sup>2x,3</sup>
 
::[[Extends clause]]
 
::[[Extends clause]]
 
:[[Constants]]
 
:[[Constants]]
Line 27: Line 22:
 
::[[Color]]
 
::[[Color]]
 
::[[Vector]]
 
::[[Vector]]
 +
::[[Coords]]
 +
::[[Plane]]
 
::[[Rotator]]
 
::[[Rotator]]
 
::[[Quaternion]]
 
::[[Quaternion]]
Line 34: Line 31:
 
:[[Replication block]]
 
:[[Replication block]]
 
:[[Operators]]
 
:[[Operators]]
::[[New]]
+
::[[Operators#New operator|New]]
:[[Functions]]
+
 
:[[Delegates]] <sup>2,3</sup>
 
:[[Delegates]] <sup>2,3</sup>
 +
:[[Functions]]
 
:[[States]]
 
:[[States]]
 
::[[Extends clause]]
 
::[[Extends clause]]
Line 61: Line 58:
 
:[[Literals#Enumeration|Enumerations]]
 
:[[Literals#Enumeration|Enumerations]]
 
:[[Literals#Objects|Objects]]
 
:[[Literals#Objects|Objects]]
::[[Archetypes]] <sup>3</sup>
 
 
:[[Literals#Structs|Structures]]
 
:[[Literals#Structs|Structures]]
 
:[[Literals#Functions|Functions]]
 
:[[Literals#Functions|Functions]]
  
===Flow Control===
+
===Flow===
:[[Break statement]] [[Flow_control#Break|:Usage]]
+
See [[Flow control|Flow]]
:[[Continue statement]]
+
 
:[[Do loop]] [[Flow_control#Do-While_Loops|:Usage]]
+
===Specifiers===
:[[For loop]] [[Flow_control#For_Loops|:Usage]]
+
See [[Specifiers]]
:[[ForEach loop]] - Has examples of usage on its own page.
+
:[[GoTo statement]] [[Flow_control#Goto|:Usage]]
+
:[[If statement]] [[Flow_control#Conditional_Statements|:Usage]]
+
:[[Return statement]]
+
:[[Stop statement]]
+
:[[Switch statement]] [[Flow_control#Case_Statements|:Usage]] - case statements
+
:[[While loop]] [[Flow_control#While_Loops|:Usage]]
+
:[[Function call specifiers]]
+
:[[Latent function]]
+
  
[[Category:UnrealScript reference| ]]
+
{{Navbox unrealscript}}[[Category:UnrealScript reference]]

Latest revision as of 15:47, 25 May 2010

This group of articles describes UnrealScript language features at the source code level. It is no official document, but aims to cover all features of the UnrealScript language as it is implemented in the Unreal Tournament series. Note that there may be additional features in the implementation of UnrealScript in licensee games.

Key[edit]

Declarations[edit]

Preprocessor 3
Classes
Extends clause
Within clause 2,3
Interfaces 2x,3
Extends clause
Constants
Enumerations
Structures
Extends clause
Color
Vector
Coords
Plane
Rotator
Quaternion
Variables
Modifiers
Metadata 2s,3
Replication block
Operators
New
Delegates 2,3
Functions
States
Extends clause
Defaultproperties
Subobjects 2,3

Types[edit]

Primitive types
Reference types
Interfaces
Classes
Delegates
Composite types
Structures
Static arrays
Dynamic arrays 2,3
Typecasting
Metacasts

Literals[edit]

Numbers
Booleans
Strings
Names
Enumerations
Objects
Structures
Functions

Flow[edit]

See Flow

Specifiers[edit]

See Specifiers