Tuesday, October 11, 2011

Object Orientation and UnrealScript

UnrealScript is completely object oriented. The main idea behind UnrealScript programming is understand the functionality of existing scripts and adapt them for our needs with the use of new subclasses.

A subclass inherits all variables, functions and states of its parent class. All classes inherit from a class called Object. The Actor class, which is a direct subclass of Object, has the features necessary for an actor to move in the game, interact with other actors and the environment.

Each script file contains exactly one class. The filename must be the class name plus the extension ".uc" (e.g., Actor.uc).

For more information about UnrealScript features:
UnrealScript Language Reference