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

UE2:Mutator (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Info >> Mutator
Package: 
Engine
Direct subclass:
U2Mutator
This class in other games:
RTNP, U1, UT, U2, UE2Runtime, UT2003, UT2004, UT3, UDK

Mutator.

Mutators allow modifications to gameplay while keeping the game rules intact. Mutators are given the opportunity to modify player login parameters with ModifyLogin(), to modify player pawn properties with ModifyPlayer(), to change the default weapon for players with GetDefaultWeapon(), or to modify, remove, or replace all other actors when they are spawned with CheckRelevance(), which is called from the PreBeginPlay() event of all actors except those (Decals, Effects and Projectiles for performance reasons) which have bGameRelevant==true.

Properties

DefaultWeapon

Type: class<Weapon>


DefaultWeaponName

Type: string


NextMutator

Type: Mutator


Functions

Events

PreBeginPlay

simulated event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Other instance functions

AddMutator

function AddMutator (Mutator M)


AlwaysKeep

function bool AlwaysKeep (Actor Other)


CheckRelevance

function bool CheckRelevance (Actor Other)


CheckReplacement

function bool CheckReplacement (Actor Other, out byte bSuperRelevant)


GetDefaultWeapon

function class<WeaponGetDefaultWeapon ()


GetInventoryClass

function class<InventoryGetInventoryClass (string InventoryClassName)


GetInventoryClassOverride

function string GetInventoryClassOverride (string InventoryClassName)


HandleKillMessage

function bool HandleKillMessage (Pawn Killer, Pawn Other, class<DamageTypeDamageType)


IsRelevant

function bool IsRelevant (Actor Other, out byte bSuperRelevant)


ModifyLogin

function ModifyLogin (out string Portal, out string Options)


ModifyPlayer

function ModifyPlayer (Pawn Other)


MyDefaultWeapon

function class<WeaponMyDefaultWeapon ()


ReplaceWith

function bool ReplaceWith (Actor Other, string aClassName)


ReplaceWithClass

function bool ReplaceWithClass (Actor Other, class<ActoraClass)