Skip to main content

Kill Zone Component

Custom Icon
Base:
UActorComponent
Type:
UNKillZoneComponent
Header File:
NexusActorPools/Public/NKillZoneComponent.h

A kill plane implementation built to automatically pool properly configured AActor upon overlap.

UNKillZoneComponent

info

By default the component will automatically change its collision profile to OverlapAllDynamic.

Component Settings​

SettingTypeDescriptionDefault
Ignore Static Actors?boolIgnore static (Non-movable) actors that trigger an overlap event.true
Ignore Non-INActorPoolItem ActorsboolIgnore actors who do not implement the INActorPoolItem interface.false

UFunctions​

The methods exposted to Blueprint.

Get Kill Count​

/**
* Gets the internal counter tracking the number of AActors the component has killed.
* @return The kill count.
*/
int32 GetKillCount() const { return KillCount; }

Set Kill Count​

/**
* Sets the internal counter tracking the number of AActors the component has killed.
* @param NewKillCount The new value to use as the kill count.
*/
void SetKillCount(const int32 NewKillCount) { KillCount = NewKillCount; }

Reset Kill Count​

/**
* Resets the internal counter tracking the number of AActors the component has killed to 0.
*/
void ResetKillCount() { KillCount = 0; }