I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:AIController (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
U2XMP Object >> Actor >> Controller >> LicenseeController >> AIController

Contents

Package: 
Engine
Direct subclass:
U2NPCController
This class in other games:
U2, UDK, UE2Runtime, UT2003, UT2004, 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

[edit] Properties

[edit] Property group 'AI'

[edit] Skill

Type: float

Modifiers: private

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

[edit] Internal variables

[edit] bAdjustFromWalls

Type: bool


Default value: True

[edit] bHunting

Type: bool


[edit] Default values

Property Value
bShouldPossess True
MinHitWall -0.5

[edit] Enums

[edit] EReaction

REACTION_Fear 
will try to run away
REACTION_Attack 

[edit] Functions

[edit] Exec functions

[edit] SwitchToBestWeapon

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

Overrides: Controller.SwitchToBestWeapon


[edit] Events

[edit] PreBeginPlay

simulated event PreBeginPlay ()

Overrides: Controller.PreBeginPlay


[edit] PrepareForMove

event PrepareForMove (NavigationPoint Goal, ReachSpec Path)

Overrides: Controller.PrepareForMove


[edit] UpdateTactics

event UpdateTactics ()

Overrides: Controller.UpdateTactics


[edit] Other instance functions

[edit] AdjustDesireFor

function float AdjustDesireFor (Pickup P)

Overrides: Controller.AdjustDesireFor


[edit] AdjustView

function AdjustView (float DeltaTime)

Overrides: Controller.AdjustView


[edit] AllowPickupWeaponSwitch

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


[edit] DisableSenses

function DisableSenses (optional bool bIncludingBumps)


[edit] DisplayDebug

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

Overrides: Controller.DisplayDebug


[edit] EnableSenses

function EnableSenses (optional bool bIncludingBumps)


[edit] GetAimingLocation

function bool GetAimingLocation (out Object.Vector TargetLocation)

Overrides: Controller.GetAimingLocation


[edit] GetSkill

function float GetSkill ()

Overrides: Controller.GetSkill


[edit] GetTacticalMoveType

function Actor.ETacticalMoveType GetTacticalMoveType ()

Overrides: Controller.GetTacticalMoveType


[edit] HearPickup

function HearPickup (Pawn Other)


[edit] MoverFinished

function MoverFinished ()

Overrides: Controller.MoverFinished


[edit] Reset

function Reset ()

Overrides: Controller.Reset


[edit] SetSkill

function SetSkill (float NewSkill)


[edit] UnderLift

function UnderLift (Mover M)

Overrides: Controller.UnderLift


[edit] WaitForMover

function WaitForMover (Mover M)

Overrides: Controller.WaitForMover


Personal tools