Create a class
Jump to navigation
Jump to search
This is a page about a basic procedure related to UnrealScript. You are encouraged to link this page from other pages instead of explaining the procedure there. |
Firstly, you will need to understand how classes in unreal script are defined. As stated on this page the extends clause is mandatory for all classes except for object.
For the purpose of this example we will assume YourClass extends UE3:Mutator_(UT3).
<uscript> class YourClass extends Mutator;
function InitMutator(string Options, out string ErrorMessage) { `log("I am your mutator!",,'mutator'); } </uscript>
Your file should look like the above with the exception of YourClass, save the file as {Your Package}\Classes\YourClass.uc