DisclaimerIf you use the site often and enjoy it, consider donating to help me cover the server costs, and motivate me to spend my time on this project. (Donate) (Crypto)

Classes

UPawnSensingComponent

UActorComponent > UObject

SensingComponent encapsulates sensory (ie sight and hearing) settings and functionality for an Actor, allowing the actor to see/hear Pawns in the world. It does nothing on network clients.

Member Type Offset Share
HearingThreshold

Max distance at which a makenoise(1.0) loudness sound can be heard, regardless of occlusion

float 0xb0
LOSHearingThreshold

Max distance at which a makenoise(1.0) loudness sound can be heard if unoccluded (LOSHearingThreshold should be > HearingThreshold)

float 0xb4
SightRadius

Maximum sight distance.

float 0xb8
SensingInterval

Amount of time between pawn sensing updates.

float 0xbc
HearingMaxSoundAge

Max age of sounds we can hear. Should be greater than SensingInterval, or you might miss hearing some sounds!

float 0xc0
bEnableSensingUpdates : 1 char 0xc4
bOnlySensePlayers : 1 char 0xc4
bSeePawns : 1 char 0xc4
bHearNoises : 1 char 0xc4
OnSeePawn

Delegate to execute when we see a Pawn.

FMulticastInlineDelegate 0xd0
OnHearNoise

Delegate to execute when we hear a noise from a Pawn's PawnNoiseEmitterComponent.

FMulticastInlineDelegate 0xe0
PeripheralVisionAngle

How far to the side AI can see, in degrees.

float 0xf0
PeripheralVisionCosine

Cosine of limits of peripheral vision. Computed from PeripheralVisionAngle.

float 0xf4