Gah - a solution with more questions. – EntropicLqd

UE2:AIController (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Controller >> LicenseeController >> AIController
Package: 
Engine
Direct subclass:
U2NPCController
This class in other games:
U2, UE2Runtime, UT2003, UT2004, UDK, UT3

AIController, the base class of AI.

Controllers are non-physical actors that can be attached to a pawn to control its actions. AIControllers implement the artificial intelligence for the pawns they control.

This is a built-in Unreal class and it shouldn't be modified. NEW

Properties[edit]

Property group 'AI'[edit]

Skill[edit]

Type: float

Modifiers: private

NEW (mdf) NPC's base skill in 0.0..1.0

Internal variables[edit]

bAdjustFromWalls[edit]

Type: bool


Default value: True

bHunting[edit]

Type: bool


Default values[edit]

Property Value
bShouldPossess True
MinHitWall -0.5

Enums[edit]

EReaction[edit]

REACTION_Fear 
will try to run away
REACTION_Attack 

Functions[edit]

Exec functions[edit]

SwitchToBestWeapon[edit]

exec function bool SwitchToBestWeapon (optional out float Rating, optional out byte bUseAltMode)

Overrides: Controller.SwitchToBestWeapon


Events[edit]

PreBeginPlay[edit]

simulated event PreBeginPlay ()

Overrides: Controller.PreBeginPlay


PrepareForMove[edit]

event PrepareForMove (NavigationPoint Goal, ReachSpec Path)

Overrides: Controller.PrepareForMove


UpdateTactics[edit]

event UpdateTactics ()

Overrides: Controller.UpdateTactics


Other instance functions[edit]

AdjustDesireFor[edit]

function float AdjustDesireFor (Pickup P)

Overrides: Controller.AdjustDesireFor


AdjustView[edit]

function AdjustView (float DeltaTime)

Overrides: Controller.AdjustView


AllowPickupWeaponSwitch[edit]

function bool AllowPickupWeaponSwitch (Weapon Self, float CurrentRating, float PendingRating)


DisableSenses[edit]

function DisableSenses (optional bool bIncludingBumps)


DisplayDebug[edit]

function DisplayDebug (Canvas Canvas, out float YL, out float YPos)

Overrides: Controller.DisplayDebug


EnableSenses[edit]

function EnableSenses (optional bool bIncludingBumps)


GetAimingLocation[edit]

function bool GetAimingLocation (out Object.Vector TargetLocation)

Overrides: Controller.GetAimingLocation


GetSkill[edit]

function float GetSkill ()

Overrides: Controller.GetSkill


GetTacticalMoveType[edit]

function Actor.ETacticalMoveType GetTacticalMoveType ()

Overrides: Controller.GetTacticalMoveType


HearPickup[edit]

function HearPickup (Pawn Other)


MoverFinished[edit]

function MoverFinished ()

Overrides: Controller.MoverFinished


Reset[edit]

function Reset ()

Overrides: Controller.Reset


SetSkill[edit]

function SetSkill (float NewSkill)


UnderLift[edit]

function UnderLift (Mover M)

Overrides: Controller.UnderLift


WaitForMover[edit]

function WaitForMover (Mover M)

Overrides: Controller.WaitForMover