Skip to content

TargeterDefinitionLine

Changed on PBE 16.23

PBE 16.23 changes this class. This page shows the live definition. PBE changes

Class Documentation

Edit documentation

A targeting indicator that draws a skillshot line from startLocator toward endLocator: a base piece and an arrow head, each with its own texture.

Visibility. The line draws only if the EnableLineMissileVis game setting is on or alwaysDraw is set. A width of 0 or less also skips it.

Length. The range is the growing range of overrideBaseRange and the rangeGrowth* properties. The length L is factor * max(minimumDisplayedRange, range), where factor is 1 unless facingLine sets it. If start and end coincide, the line points along fallbackDirection.

Mode. The line is global if indicatorType is an IndicatorTypeGlobal, or if indicatorType is not set and useGlobalLineIndicator is true. Otherwise it is local. In global mode, and in local mode when lineStopsAtEndPosition is true, the line is no longer than the distance from start to end.

  • Local: the arrow head covers the last arrowSize of the line, or the whole line if it is shorter, with the target texture. If L is greater than arrowSize, the base texture covers the rest, from the start to the head.
  • Global: two pieces, each arrowSize long. The base piece starts at the start position and the target piece starts at distance L. If L is not greater than arrowSize and the indicator is not floating (IndicatorTypeGlobal.mIsFloating), only the target piece draws, at the start position.

Facing. If facingLine is set, the client compares the caster's facing with the line direction every frame. Inside the window from minAngle to maxAngle the length factor goes from minAngleRangeFactor to maxAngleRangeFactor with the angle, and the line has full brightness. Within fadeAngle outside the window the brightness falls to 0, and beyond that it is 0. The brightness scales the red, green and blue of the colour and leaves alpha unchanged.

Changes on PBE 16.23

0xc8f6a648 re-added Bool

Properties

0xc8f6a648

Bool = false
Removed in 16.21 16.21
Add documentation

No documentation available yet. Click "Add documentation" to contribute!

alwaysDraw

Bool = false
Edit documentation

Draws the line even when the EnableLineMissileVis game setting is off.

arrowSize

F32 = 0
Edit documentation

Length of the arrow head, in world units. 0 uses 500 in global mode and 200 in local mode.

endLocator

Embed<DrawablePositionLocator>
Default value
{
  "orientationType": 0,
  "basePosition": 0,
  "angleOffsetRadian": 0,
  "distanceOffset": 0
}
Edit documentation

Point that the line aims at. It sets the direction, and the length limit in global mode or with lineStopsAtEndPosition.

facingLine

Bool = false
Edit documentation

Turns on the facing rule, see Facing above.

fade

Bool = true
Edit documentation

If it is false, the line keeps full brightness at every angle.

fadeAngle

F32 = 0
Edit documentation

Width, in degrees, of the band outside the window over which the brightness falls to 0.

hasMaxGrowRange

Bool = false
Edit documentation

Draws a second line at the maximum of the range growth, with the textureBaseMaxGrowName and textureTargetMaxGrowName textures. Its length is rangeGrowthMax if that is set, otherwise mCastRangeGrowthMax at the spell level. It always uses the local layout and is not scaled by the facing factor.

lineStopsAtEndPosition

Option<Bool> = null
Edit documentation

In local mode, limits the length to the distance from start to end when true. If it is not set, the spell's mProjectTargetToCastRange decides.

lineWidth

Embed<FloatPerSpellLevel> = { "mValueType": 0, "mPerLevelValues": [0, 0, 0, 0, 0, 0] }
Edit documentation

Width of the line, in world units. If it is unset, the spell's mLineWidth applies.

mAngleLineToEndpointHeight

Bool = false
Edit documentation

Moves the start to the height of the end, so the line is level at the height of the end position.

mCenterArrowToEndPoint

Bool = false
Edit documentation

In local mode, extends the line by half of arrowSize, so the middle of the arrow head sits on the end point.

maxAngle

F32 = 180
Edit documentation

End of the facing window, in degrees. Clamped to 0-180. If minAngle is greater than maxAngle, the window covers every angle.

minAngle

F32 = 0
Edit documentation

Start of the facing window, in degrees between the caster's facing and the line. Clamped to 0-180.

minimumDisplayedRange

F32 = 50
Edit documentation

Shortest length that the line draws at, in world units, before the facing factor.

overrideBaseRange

Embed<FloatPerSpellLevel> = { "mValueType": 0, "mPerLevelValues": [0, 0, 0, 0, 0, 0] }
Edit documentation

Base range of the line, in world units. If it is unset, the display cast range of the spell applies. See range growth.

textureBaseMaxGrowName

File = "0x0"
Type history (2 revisions)
  • 13.15 - 16.16 String
  • since 16.17 File
Edit documentation

Texture of the base piece of the maximum growth line. Loaded only with hasMaxGrowRange. Same fallback as textureBaseOverrideName.

textureBaseOverrideName

File = "0x0"
Type history (2 revisions)
  • 13.15 - 16.16 String
  • since 16.17 File
Edit documentation

Texture of the base piece. If it is empty, the base line texture of the mode applies.

textureTargetMaxGrowName

File = "0x0"
Type history (2 revisions)
  • 13.15 - 16.16 String
  • since 16.17 File
Edit documentation

Texture of the arrow head of the maximum growth line. Loaded only with hasMaxGrowRange. Same fallback as textureTargetOverrideName.

textureTargetOverrideName

File = "0x0"
Type history (2 revisions)
  • 13.15 - 16.16 String
  • since 16.17 File
Edit documentation

Texture of the arrow head. If it is empty, the target line texture of the mode applies.

useGlobalLineIndicator

Bool = false
Edit documentation

Selects global mode when indicatorType is not set.