Cogito, ergo sum

UE2:Pawn (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> Pawn
Package: 
Engine
Direct subclasses:
XMPVehicleBarrel, StationaryTurret, Scout, StationaryPawn, U2Pawn, Vehicle
This class in other games:
RTNP, U1, UT, UE2Runtime, UT2003, U2XMP, 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.

Properties[edit]

Property group 'Advanced'[edit]

bUseEnabled[edit]

Type: bool

If true, use functionality is enabled

Default value: True

Property group 'AI'[edit]

AIScriptTag[edit]

Type: name

tag of AIScript which should be associated with this pawn

Alertness[edit]

Type: float

-1 to 1 ->Used within specific states for varying reaction to stimuli

bAdjacentZoneHearing[edit]

Type: bool

can hear any sound in adjacent zone (if close enough to hear)

bAroundCornerHearing[edit]

Type: bool


bLOSHearing[edit]

Type: bool


Default value: True

bMuffledHearing[edit]

Type: bool

can hear sounds through walls (but muffled - sound distance increased to double plus 4x the distance through walls

bSameZoneHearing[edit]

Type: bool

can hear any sound in same zone (if close enough to hear)

HearingThreshold[edit]

Type: float

max distance at which a makenoise(1.0) loudness sound can be heard

Default value: 2800.0

PeripheralVision[edit]

Type: float

Cosine of limits of peripheral vision.

SightRadius[edit]

Type: float

Maximum seeing distance.

Default value: 5000.0

Property group 'AnimTweaks'[edit]

BlendChangeTime[edit]

Type: float

time to blend between movement animations

Default value: 0.25

Property group 'Pawn'[edit]

bCanCrouch[edit]

Type: bool

if true, this pawn is capable of crouching

Default value: True

SkillModifier[edit]

Type: float

skill modifier (same scale as game difficulty)

Internal variables[edit]

See Pawn internal variables.

Default values[edit]

Property Value
bBlockActors True
bBlockPlayers True
bCanBeBaseForPawns False
bCanBeDamaged True
bCanTeleport True
bCollideActors True
bCollideWorld True
bDirectional True
bDisturbFluidSurface True
bNoRepMesh True
bOwnerNoSee True
bProjTarget True
bRotateToDesired True
bShouldBaseAtStartup True
bStasis True
bTravel True
bUpdateSimulatedPosition True
CollisionHeight 58.0
CollisionRadius 28.0
DrawType DT_Mesh
NetPriority 2.0
RemoteRole ROLE_SimulatedProxy
RotationRate
Member Value
Pitch 4096
Roll 3072
Yaw 20000
SoundRadius 60.0
SoundVolume 255
Texture Texture'Engine.S_Pawn'

Functions[edit]

Static native functions[edit]

ValidPawn[edit]

static native final function bool ValidPawn (Pawn P)


Exec functions[edit]

NextItem[edit]

exec function NextItem ()


SwitchToLastWeapon[edit]

exec function SwitchToLastWeapon ()


Native functions[edit]

AddPawn[edit]

native final function AddPawn ()


ForceCrouch[edit]

native function ForceCrouch ()


Get4WayDirection[edit]

simulated native function int Get4WayDirection ()


ReachedDestination[edit]

native function bool ReachedDestination (Actor Goal)


RemovePawn[edit]

native final function RemovePawn ()


SetTwistLook[edit]

simulated native function SetTwistLook (int twist, int look)


Events[edit]

See Pawn events.

Other instance functions[edit]

See Pawn instance functions.

States[edit]

Dying[edit]

Ignores: BreathTimer, Bump, ChangedWeapon, Falling, HeadVolumeChange, HitWall, PhysicsVolumeChange, Trigger

Dying.AnimEnd[edit]

event AnimEnd (int Channel)

Overrides: AnimEnd (global)


Dying.BaseChange[edit]

singular event BaseChange ()

Overrides: BaseChange (global)


Dying.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


Dying.ChangeAnimation[edit]

event ChangeAnimation ()

Overrides: ChangeAnimation (global)


Dying.EndState[edit]

event EndState ()

Overrides: Object.EndState (global)


Dying.FellOutOfWorld[edit]

event FellOutOfWorld (Actor.eKillZType KillType)

Overrides: FellOutOfWorld (global)


Dying.Landed[edit]

event Landed (Object.Vector HitNormal)

Overrides: Landed (global)


Dying.StopPlayFiring[edit]

event StopPlayFiring ()

Overrides: StopPlayFiring (global)


Dying.TakeDamage[edit]

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

Overrides: TakeDamage (global)


Dying.CanBeRevived[edit]

function bool CanBeRevived (optional Actor Other)

Overrides: CanBeRevived (global)


Dying.Died[edit]

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

Overrides: Died (global)


Dying.HandleDying[edit]

simulated function HandleDying ()

Overrides: HandleDying (global)


Dying.LandThump[edit]

function LandThump ()


Dying.LieStill[edit]

function LieStill ()


Dying.PlayFiring[edit]

function PlayFiring (float Rate, name FiringMode)

Overrides: PlayFiring (global)


Dying.PlayNextAnimation[edit]

simulated function PlayNextAnimation ()


Dying.PlayTakeHit[edit]

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

Overrides: PlayTakeHit (global)


Dying.PlayWeaponReload[edit]

function PlayWeaponReload (Weapon NewWeapon)

Overrides: PlayWeaponReload (global)


Dying.PlayWeaponSwitch[edit]

function PlayWeaponSwitch (Weapon NewWeapon)

Overrides: PlayWeaponSwitch (global)


Dying.ReduceCylinder[edit]

function ReduceCylinder ()


Passenger[edit]

Ignores: ChangedWeapon

Passenger.BeginState[edit]

event BeginState ()

Overrides: Object.BeginState (global)