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

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

See UTHeroPawn properties.

Functions

Events

Destroyed

simulated event Destroyed ()

Overrides: UTPawn.Destroyed


EncroachedBy

singular event EncroachedBy (Actor Other)

Overrides: UTPawn.EncroachedBy


EndCrouch

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

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

simulated event bool IsHero ()

Overrides: UTPawn.IsHero


Landed

event Landed (Object.Vector HitNormal, Actor FloorActor)

Overrides: UTPawn.Landed


PlayFootStepSound

simulated event PlayFootStepSound (int FootDown)

Overrides: UTPawn.PlayFootStepSound


ReplicatedEvent

simulated event ReplicatedEvent (name VarName)

Overrides: UTPawn.ReplicatedEvent

Check on various replicated data and act accordingly.

StartCrouch

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

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

See UTHeroPawn instance functions.

States

Dying

Inherits from: UTPawn.Dying

Modifiers: simulated

Dying.BeginState

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

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

simulated function SpawnHeroGibs ()

Overrides: SpawnHeroGibs (global)