The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

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:
UE2Runtime, U2, UT2003, UT2004, UT3, UDK

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

Property group 'AI'

Skill

Type: float

Modifiers: private

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

Internal variables

bAdjustFromWalls

Type: bool


Default value: True

bHunting

Type: bool


Default values

Property Value
bShouldPossess True
MinHitWall -0.5

Enums

EReaction

REACTION_Fear 
will try to run away
REACTION_Attack 

Functions

Exec functions

SwitchToBestWeapon

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

Overrides: Controller.SwitchToBestWeapon


Events

PreBeginPlay

simulated event PreBeginPlay ()

Overrides: Controller.PreBeginPlay


PrepareForMove

event PrepareForMove (NavigationPoint Goal, ReachSpec Path)

Overrides: Controller.PrepareForMove


UpdateTactics

event UpdateTactics ()

Overrides: Controller.UpdateTactics


Other instance functions

AdjustDesireFor

function float AdjustDesireFor (Pickup P)

Overrides: Controller.AdjustDesireFor


AdjustView

function AdjustView (float DeltaTime)

Overrides: Controller.AdjustView


AllowPickupWeaponSwitch

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


DisableSenses

function DisableSenses (optional bool bIncludingBumps)


DisplayDebug

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

Overrides: Controller.DisplayDebug


EnableSenses

function EnableSenses (optional bool bIncludingBumps)


GetAimingLocation

function bool GetAimingLocation (out Object.Vector TargetLocation)

Overrides: Controller.GetAimingLocation


GetSkill

function float GetSkill ()

Overrides: Controller.GetSkill


GetTacticalMoveType

function Actor.ETacticalMoveType GetTacticalMoveType ()

Overrides: Controller.GetTacticalMoveType


HearPickup

function HearPickup (Pawn Other)


MoverFinished

function MoverFinished ()

Overrides: Controller.MoverFinished


Reset

function Reset ()

Overrides: Controller.Reset


SetSkill

function SetSkill (float NewSkill)


UnderLift

function UnderLift (Mover M)

Overrides: Controller.UnderLift


WaitForMover

function WaitForMover (Mover M)

Overrides: Controller.WaitForMover