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

UE3:UTSquadAI (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Actor >> Info >> ReplicationInfo >> UTSquadAI
Package: 
UTGame
Direct subclasses:
UTCTFSquadAI, UTDMSquad, UTOnslaughtSquadAI, UTGreedSquadAI
This class in other games:
UDK

operational AI control for TeamGame

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Constants

NEAROBJECTIVEDIST

Value: 2000.0


Properties

AttackString

Type: string

Modifiers: localized


Default value: "attacking"

bAddTransientCosts

Type: bool


bFreelance

Type: bool


bFreelanceAttack

Type: bool


bFreelanceDefend

Type: bool


bRoamingSquad

Type: bool


Default value: True

bShouldUseGatherPoints

Type: bool

whether bots should tend to wait to group up near the end of the squad route

CurrentOrders

Type: name


DefendString

Type: string

Modifiers: localized


Default value: "defending"

Enemies

Type: Pawn

Array size: 8


FormationSize

Type: float


Default value: 1100.0

FreelanceString

Type: string

Modifiers: localized


Default value: "Sweeper"

HoldString

Type: string

Modifiers: localized


Default value: "holding"

LeaderPRI

Type: UTPlayerReplicationInfo


MaxSquadRoutes

Type: int

maximum size of SquadRoutes list

Default value: 5

MaxSquadSize

Type: int


Default value: 2

NextSquad

Type: UTSquadAI

list of squads on a team

ObjectiveRouteCache

Type: array<NavigationPoint>


PendingSquadRouteMaker

Type: UTBot

bot that we want to use to generate the route (usually SquadLeader)

PreviousObjectiveRouteCache

Type: array<NavigationPoint>

when generating a new ObjectiveRouteCache for the same objective, the previous is stored here so bots still following it don't get disrupted

RouteObjective

Type: NavigationPoint


Size

Type: int


SquadLeader

Type: Controller


SquadMembers

Type: UTBot


SquadObjective

Type: UTGameObjective


SquadRouteIteration

Type: int

current alternate route iteration (loops back to start after reaching MaxSquadRoutes)

SquadRoutes

Type: array<AlternateRoute>


SupportString

Type: string

Modifiers: localized


Default value: "supporting"

SupportStringTrailer

Type: string

Modifiers: localized


Team

Type: UTTeamInfo


Default values

Property Value
NetUpdateFrequency 1.0

Structs

AlternateRoute

Modifiers: native

list of alternate routes. Each one higher in the list was created by first adding cost to the nodes in all previous routes

array<NavigationPoint> RouteCache 

Functions

Native functions

GetTeamNum

simulated native function byte GetTeamNum ()

Overrides: Actor.GetTeamNum


Events

Destroyed

event Destroyed ()

Overrides: Actor.Destroyed


Reset

event Reset ()

Overrides: Actor.Reset


SetLeader

event SetLeader (Controller C)


Other instance functions

See UTSquadAI instance functions.

States

Retasking

Retasking.Tick

event Tick (float DeltaTime)

Overrides: Actor.Tick (global)