Always snap to grid

UE3:UTHeroPawn (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Actor >> Pawn >> GamePawn >> UTPawn >> UTHeroPawn
Package: 
UTGame

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

Properties[edit]

See UTHeroPawn properties.

Functions[edit]

Events[edit]

Destroyed[edit]

simulated event Destroyed ()

Overrides: UTPawn.Destroyed


EncroachedBy[edit]

singular event EncroachedBy (Actor Other)

Overrides: UTPawn.EncroachedBy


EndCrouch[edit]

simulated event EndCrouch (float HeightAdjust)

Overrides: UTPawn.EndCrouch

Event called from native code when Pawn stops crouching. Called on non owned Pawns through bIsCrouched replication. Network: ALL

Parameters:

  • HeightAdjust - height difference in unreal units between default collision height, and actual crouched cylinder height.

GetPawnViewLocation[edit]

simulated event Object.Vector GetPawnViewLocation ()

Overrides: UTPawn.GetPawnViewLocation

For heroes, use the camera's actual location, instead of an approximation that assumes the camera is directly above the pawn's location

IsHero[edit]

simulated event bool IsHero ()

Overrides: UTPawn.IsHero


Landed[edit]

event Landed (Object.Vector HitNormal, Actor FloorActor)

Overrides: UTPawn.Landed


PlayFootStepSound[edit]

simulated event PlayFootStepSound (int FootDown)

Overrides: UTPawn.PlayFootStepSound


ReplicatedEvent[edit]

simulated event ReplicatedEvent (name VarName)

Overrides: UTPawn.ReplicatedEvent

Check on various replicated data and act accordingly.

StartCrouch[edit]

simulated event StartCrouch (float HeightAdjust)

Overrides: UTPawn.StartCrouch

Event called from native code when Pawn starts crouching. Called on non owned Pawns through bIsCrouched replication. Network: ALL

Parameters:

  • HeightAdjust - height difference in unreal units between default collision height, and actual crouched cylinder height.

TakeDamage[edit]

event TakeDamage (int Damage, Controller EventInstigator, Object.Vector HitLocation, Object.Vector Momentum, class<DamageTypeDamageType, optional Actor.TraceHitInfo HitInfo, optional Actor DamageCauser)

Overrides: UTPawn.TakeDamage

(Description copied from UTPawn.TakeDamage)
We override TakeDamage and allow the weapon to modify it

See: Pawn.TakeDamage

Other instance functions[edit]

See UTHeroPawn instance functions.

States[edit]

Dying[edit]

Inherits from: UTPawn.Dying

Modifiers: simulated

Dying.BeginState[edit]

simulated event BeginState (name PreviousStateName)

Overrides: UTPawn.Dying.BeginState

Called immediately when entering a state, while within the GotoState() call that caused the state change (before any state code is executed).

Dying.EndState[edit]

simulated event EndState (name NextStateName)

Overrides: UTPawn.Dying.EndState

Called immediately before going out of the current state, while within the GotoState() call that caused the state change, and before BeginState() is called within the new state.

Dying.SpawnHeroGibs[edit]

simulated function SpawnHeroGibs ()

Overrides: SpawnHeroGibs (global)