Wikis / Unreal Wiki / Create a class

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).

class YourClass extends Mutator;
 
function InitMutator(string Options, out string ErrorMessage)
{
	`log("I am your mutator!",,'mutator');
}

Your file should look like the above with the exception of YourClass, save the file as {Your Package}\Classes\YourClass.uc

Page Categories

Page Information

2022-11-20T16:10:23.571812Z 2010-05-05T18:30:23Z 00zX https://wiki.beyondunreal.com/Create a class Attribution-NonCommercial-ShareAlike 3.0