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

Difference between revisions of "UE1:HelloWorldCommandlet (UT)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Auto-generated page)
 
(added descriptions)
 
Line 4: Line 4:
 
| parent2 = Object
 
| parent2 = Object
 
}}
 
}}
{{autogenerated}}
+
UnrealScript "hello world" sample Commandlet.
/ UnrealScript "hello world" sample Commandlet.
+
 
/
+
==Usage==
/ Usage:
+
<pre>ucc.exe HelloWorld</pre>
/    ucc.exe HelloWorld
+
  
 
==Properties==
 
==Properties==
Line 14: Line 13:
 
'''Type:''' [[int]]
 
'''Type:''' [[int]]
  
<!-- enter variable description -->
+
An example integer variable that can be set from the command line with the parameter <code>intparm=''value''</code>.
  
 
====strparm====
 
====strparm====
 
'''Type:''' [[string]]
 
'''Type:''' [[string]]
  
<!-- enter variable description -->
+
An example string variable that can be set from the command line with the parameter <code>strparm=''value''</code>.
  
 
===Default values===
 
===Default values===
Line 54: Line 53:
 
'''Overrides:''' {{tl|Main|Commandlet}}
 
'''Overrides:''' {{tl|Main|Commandlet}}
  
<!-- enter function description -->
+
Prints "Hello, world!", any command line parameters and the values of the two example variables.
 +
 
 +
==See also==
 +
* [http://unreal.student.utwente.nl/uncodex-ut/Source_core/helloworldcommandlet.html Source code of HelloWorldCommandlet]

Latest revision as of 06:55, 15 December 2008

UT Object >> Commandlet >> HelloWorldCommandlet
Package: 
Core
This class in other games:
RTNP, U1, U2XMP, U2, UE2Runtime

UnrealScript "hello world" sample Commandlet.

Usage[edit]

ucc.exe HelloWorld

Properties[edit]

intparm[edit]

Type: int

An example integer variable that can be set from the command line with the parameter intparm=value.

strparm[edit]

Type: string

An example string variable that can be set from the command line with the parameter strparm=value.

Default values[edit]

Property Value
HelpCmd "HelloWorld"
HelpDesc[0] "An integer parameter"
HelpDesc[1] "A string parameter"
HelpOneLiner "Sample"
HelpParm[0] "IntParm"
HelpParm[1] "StrParm"
HelpUsage "HelloWorld"

Events[edit]

Main[edit]

event int Main (string Parms)

Overrides: Commandlet.Main

Prints "Hello, world!", any command line parameters and the values of the two example variables.

See also[edit]