Hello World in UnrealScript
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, you typically place the code into a script and ensure it is compiled and included in your Unreal Engine project. The way to run UnrealScript will depend on your game setup and configuration.
Compile the script and then initiate the appropriate game mode or debug environment to see the output.
Sometimes we’ll want to package our programs or scripts into a mod or game build. Ensure your UnrealScript files are properly integrated into your Unreal Engine project and tested.
To execute the compiled script:
Make sure the compilation was successful:
Launch your Unreal Engine project:
Run the specific game mode or script to see “hello world” in the logs.
Now that we can run and build basic UnrealScript programs, let’s learn more about the language.