UMassComponentHitSubsystem

Subsystem that keeps track of the latest component hits and allow mass entities to retrieve and handle them

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MassAIBehavior

Header

/Engine/Plugins/AI/MassAI/Source/MassAIBehavior/Public/MassComponentHitSubsystem.h

Include

#include "MassComponentHitSubsystem.h"

Syntax

UCLASS()
class UMassComponentHitSubsystem : public UTickableWorldSubsystem

Remarks

Subsystem that keeps track of the latest component hits and allow mass entities to retrieve and handle them

Variables

Functions

Name Description

Public function Const

const FMassH...

 

GetLastHit

(
    const FMassEntityHandle Entity
)

Protected function UFunction

void

 

OnHitCallback

(
    UPrimitiveComponent* HitComp,
    AActor* OtherActor,
    UPrimitiveComponent* OtherComp,
    FVector NormalImpulse,
    const FHitResult& Hit
)

Protected function

void

 

RegisterForComponentHit

(
    const FMassEntityHandle Entity,
    UCapsuleComponent& CapsuleComponen...
)

Protected function

void

 

UnregisterForComponentHit

(
    FMassEntityHandle Entity,
    UCapsuleComponent& CapsuleComponen...
)

Overridden from USubsystem

Name Description

Protected function Virtual

void

 

Deinitialize()

Implement this for deinitialization of instances of the system

Protected function Virtual

void

 

Initialize

(
    FSubsystemCollectionBase& Collecti...
)

USubsystem implementation Begin.

Overridden from FTickableObjectBase

Name Description

Protected function Virtual Const

TStatId

 

GetStatId()

Return the stat id to use for this tickable

Protected function Virtual

void

 

Tick

(
    float DeltaTime
)

Pure virtual that must be overloaded by the inheriting class.