Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE2:Pawn (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:10, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
U2XMP Object >> Actor >> Pawn
Package: 
Engine
Direct subclasses:
LicenseePawn, PawnProxy, Scout, Vehicle
This class in other games:
RTNP, U1, UT, UE2Runtime, UT2003, U2, UT2004, UDK, UT3

Pawn, the base class of all actors that can be controlled by players or AI.

Pawns are the physical representations of players and creatures in a level. Pawns have a mesh, collision, and physics. Pawns can take damage, make sounds, and hold weapons and other inventory. In short, they are responsible for all physical interaction between the player or AI and the world.

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

Constants

DyingState

Value: 'Dying'


ObservedDeathEvent

Value: 'ObservedDeath'


Team_Invalid

Value: -1

not set

Team_MinValid

Value: 0


Team_Player

Value: 0


Team_Marine

Value: 1


Team_MercJap

Value: 2


Team_MercMek

Value: 3


Team_MercFem

Value: 4


Team_Skaarj

Value: 20


Team_Izarian

Value: 21


Team_Shian

Value: 41


Team_Drakk

Value: 42


Team_Araknid

Value: 43


Team_Strider

Value: 44


Team_Kai

Value: 48


Team_Tosc

Value: 58


Team_Spore

Value: 67


Team_Ambient

Value: 85


Team_None

Value: 100

will attack/be attacked by all non-ambient NPCs (teams ignored)

Team_TeamOutcast

Value: 101

will be attack/be attacked by NPCs from original team

Team_ClassOutcast

Value: 102

will be attack/be attacked by NPCs of same class (e.g. injured fish).

Team_MaxValid

Value: 102


SwimForwardThreshold

Value: 0.001


Properties

See Pawn properties.

Structs

TSpecialNavigationEntry

Modifiers: native

class<NavigationPoint> NPClass 
class of navigation point to favor
int NPCost 
cost to boost non-matching navigation points by

Functions

Static functions

ValidPawn

static function bool ValidPawn (Pawn P)


Exec functions

NextItem

exec function NextItem ()


Native functions

AddPawn

native final function AddPawn ()


GetAimRotation

native final function Object.Rotator GetAimRotation ()


GetTeam

native final function int GetTeam ()


RemovePawn

native final function RemovePawn ()


SameTeam

native final function bool SameTeam (Pawn Other, optional bool bIgnoreAmbientClasses, optional bool bIgnoreFriendlyToPlayerTeam)


Events

BaseChange

singular event BaseChange ()

Overrides: Actor.BaseChange


BeginFalling

event BeginFalling ()


BreathTimer

event BreathTimer ()


CalcDrawOffset

simulated event Object.Vector CalcDrawOffset (Inventory Inv)


ClientMessage

event ClientMessage (coerce string S, optional name Type)


Destroyed

simulated event Destroyed ()

Overrides: Actor.Destroyed


EncroachingOn

event bool EncroachingOn (Actor Other)

Overrides: Actor.EncroachingOn


EndClimbLadder

event EndClimbLadder ()


FellOutOfWorld

event FellOutOfWorld ()

Overrides: Actor.FellOutOfWorld


HeadVolumeChange

event HeadVolumeChange (PhysicsVolume newHeadVolume)


HitWall

event HitWall (Object.Vector HitNormal, Actor Wall)

Overrides: Actor.HitWall


LandedEx

event LandedEx (Actor.CheckResult Hit)

Overrides: Actor.LandedEx


NotifyStanceChange

event NotifyStanceChange (byte NewStance, float HeightAdjust)


PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


PreBeginPlay

simulated event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


ReceiveLocalizedMessage

event ReceiveLocalizedMessage (class<LocalMessageMessage, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject)


Replication

event Replication ()

Overrides: Actor.Replication


UpdateEyeHeight

event UpdateEyeHeight (float DeltaTime)


Other instance functions

See Pawn instance functions.

States

@DyingState

Ignores: BeginFalling, BreathTimer, Bump, HeadVolumeChange, HitWall, PhysicsVolumeChange

@DyingState.AnimEnd

event AnimEnd (int Channel)

Overrides: Actor.AnimEnd (global)


@DyingState.BaseChange

singular event BaseChange ()

Overrides: BaseChange (global)


@DyingState.BeginState

event BeginState ()

Overrides: Object.BeginState (global)


@DyingState.FellOutOfWorld

event FellOutOfWorld ()

Overrides: FellOutOfWorld (global)


@DyingState.Landed

event Landed (Object.Vector HitNormal)

Overrides: Actor.Landed (global)


@DyingState.Timer

event Timer ()

Overrides: Actor.Timer (global)


@DyingState.Died

function Died (Controller Killer, class<DamageTypedamageType, Object.Vector HitLocation, Object.Vector Momentum)

Overrides: Died (global)


@DyingState.LandThump

function LandThump ()


@DyingState.LieStill

function LieStill ()


@DyingState.PlayTakeHit

function PlayTakeHit (Object.Vector HitLoc, int Damage, class<DamageTypedamageType)

Overrides: PlayTakeHit (global)


@DyingState.PlayWeaponSwitch

function PlayWeaponSwitch (Weapon NewWeapon)


@DyingState.ReduceCylinder

function ReduceCylinder ()


@DyingState.TakeDamage

function TakeDamage (int Damage, Pawn instigatedBy, Object.Vector hitlocation, Object.Vector momentum, class<DamageTypedamageType)

Overrides: TakeDamage (global)