Legacy:AIScript - Unreal Wiki

# Legacy:AIScript

### From Unreal Wiki, The Unreal Engine Documentation Site

UT2003 :: Object >> Actor >> Keypoint >> AIScript

Used by Level Designers to specify special AI scripts for pawns placed in a level, and to change which type of AI controller to use for a pawn. AIScripts can be shared by one or many pawns. Game specific subclasses of AIScript will have editable properties defining game specific behavior and AI. This is the base class for ScriptedSequence.

## Properties

### Main

class<AIController> ControllerClass

### Hidden

bool bNavigate
  If true, put an associated path in the navigation network
bool bLoggingEnabled
AIMarker myMarker
  The NavigationPoint created when bot paths are built

## Functions

(incomplete)

SpawnControllerFor(Pawn P)
  Spawn and initialize an AI Controller (called by a non-player controlled Pawn at level startup) This sets the `Controller.MyScript` property and calls `Controller.Possess`
GetMoveTarget()
  Returns the myMarker property as an Actor

## Known Subclasses

- ScriptedSequence
  - ScriptedTrigger
  - UnrealScriptedSequence

## Related Topics

- AIController
  - ScriptedController
    - Bot
- Artificial Intelligence – Super topic for all AI
  - Bot Support – Hub for bot support
    - Bot Pathing – Concepts and element of a bot path network
    - Strategic Bots – Advanced bot support
  - Monster Support – Hub for monster support
    - AI Scripting Reference
  - NPC Support – Hub for NPC support

## Discussion

SuperApe: Filled in properties and functions. Linked up.

Categories: Legacy Class (UT2003) | Legacy Class (UT2004)

##### Views

- Legacy
- Discussion
- Current revision

##### Search