Endstar LUA API Documentation
Loading...
Searching...
No Matches
Targeter Class Reference

Used to modify a targeter components behavior by altering its settings. More...

Public Member Functions

void SetMaxLookDistance (Context instigator, float distance)
 Sets the maximum distance the targeter can look.
 
void SetVerticalViewAngle (Context instigator, float angle)
 Sets the vertical view angle for the targeter.
 
void SetHorizontalViewWidth (Context instigator, float angle)
 Sets the horizontal view angle for the targeter.
 
void SetTargetSelectionMode (Context instigator, int targetSelectionMode)
 Sets the target selection mode for the targeter.
 
void SetTargetPrioritizationMode (Context instigator, int targetPrioritizationMode)
 Sets the target prioritization mode for the targeter.
 
void SetCurrentTargetHandlingMode (Context instigator, int currentTargetHandlingMode)
 Sets the handling mode for the current target.
 
void SetTargetHostilityMode (Context instigator, int targetHostilityMode)
 Sets the target hostility mode for the targeter.
 
void SetZeroHealthTargetMode (Context instigator, int zeroHealthTargetMode)
 Sets the mode for handling targets with zero health.
 
void UseXRayLos (Context instigator, bool useXray)
 Configures whether the targeter should use X-Ray line of sight.
 
void IsNavigationDependent (bool isNavigationDependent)
 Sets whether the targeter is navigation dependent.
 
void SetAwarenessLossRate (Context instigator, float newLossRate)
 Sets the rate at which the targeter loses awareness of its target.
 
float GetAwarenessLossRate ()
 Gets the current rate at which the targeter loses awareness of its target.
 

Detailed Description

Used to modify a targeter components behavior by altering its settings.

Member Function Documentation

◆ GetAwarenessLossRate()

float GetAwarenessLossRate ( )

Gets the current rate at which the targeter loses awareness of its target.

Returns
The current awareness loss rate.

◆ IsNavigationDependent()

void IsNavigationDependent ( bool isNavigationDependent)

Sets whether the targeter is navigation dependent.

Parameters
isNavigationDependentIf set to true, the targeter is navigation dependent.

◆ SetAwarenessLossRate()

void SetAwarenessLossRate ( Context instigator,
float newLossRate )

Sets the rate at which the targeter loses awareness of its target.

Parameters
instigatorThe source context triggering this change
newLossRateThe new awareness loss rate.

◆ SetCurrentTargetHandlingMode()

void SetCurrentTargetHandlingMode ( Context instigator,
int currentTargetHandlingMode )

Sets the handling mode for the current target.

Parameters
instigatorThe source context triggering this change
currentTargetHandlingModeThe new current target handling mode.

◆ SetHorizontalViewWidth()

void SetHorizontalViewWidth ( Context instigator,
float angle )

Sets the horizontal view angle for the targeter.

Parameters
instigatorThe source context triggering this change
angleThe new horizontal view width angle.

◆ SetMaxLookDistance()

void SetMaxLookDistance ( Context instigator,
float distance )

Sets the maximum distance the targeter can look.

Parameters
instigatorThe source context triggering this change
distanceThe new maximum look distance.

◆ SetTargetHostilityMode()

void SetTargetHostilityMode ( Context instigator,
int targetHostilityMode )

Sets the target hostility mode for the targeter.

Parameters
instigatorThe source context triggering this change
targetHostilityModeThe new target hostility mode.

◆ SetTargetPrioritizationMode()

void SetTargetPrioritizationMode ( Context instigator,
int targetPrioritizationMode )

Sets the target prioritization mode for the targeter.

Parameters
instigatorThe source context triggering this change
targetPrioritizationModeThe new target prioritization mode.

◆ SetTargetSelectionMode()

void SetTargetSelectionMode ( Context instigator,
int targetSelectionMode )

Sets the target selection mode for the targeter.

Parameters
instigatorThe source context triggering this change
targetSelectionModeThe new target selection mode.

◆ SetVerticalViewAngle()

void SetVerticalViewAngle ( Context instigator,
float angle )

Sets the vertical view angle for the targeter.

Parameters
instigatorThe source context triggering this change
angleThe new vertical view angle.

◆ SetZeroHealthTargetMode()

void SetZeroHealthTargetMode ( Context instigator,
int zeroHealthTargetMode )

Sets the mode for handling targets with zero health.

Parameters
instigatorThe source context triggering this change
zeroHealthTargetModeThe new zero health target mode.

◆ UseXRayLos()

void UseXRayLos ( Context instigator,
bool useXray )

Configures whether the targeter should use X-Ray line of sight.

Parameters
instigatorThe source context triggering this change
useXrayIf set to true, use X-Ray line of sight.