This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Unit Controllers

Image showing the TargetingHandler component, as seen in the Entity Inspector.

Targeting Handler Overview

Functionality

Player Controller

AI Controller


Setting Up Your Targeting Handler


API

// UnitControllerIncomingEventBus
void PossessUnit(AZ::EntityId targetUnit) override;

void DePossessUnit() override;

AZ::EntityId GetUnit() override { return possessedUnit; };

AZStd::string GetUniqueName() override { return uniqueName; };

// UnitManagerOutgoingEventBus
void ReturnNewUnit(AZ::EntityId caller, AZ::EntityId newUnit) override;

// Local Methods
virtual void PostActivateProcessing();

virtual void SetUniqueName();

Extending Targeting Handler