Skip to content

FadeOverTimeBehavior

Inheritance 1 ancestor · 2 siblings

Class Documentation

Edit documentation

A fade rule that fades a targeting indicator over time. With x the time in seconds since the targeting mode started:

  1. If mTimeStart is greater than mTimeEnd, the factor is 0 and the indicator is hidden.
  2. If mStartAlpha equals mEndAlpha, or x is not greater than mTimeStart, the factor is mStartAlpha.
  3. If x is not less than mTimeEnd, or the two times are equal, the factor is mEndAlpha.
  4. Otherwise the factor goes linearly from mStartAlpha to mEndAlpha between the two times.

Properties

mEndAlpha

F32 = 1
Edit documentation

Factor from mTimeEnd on. 0 hides the indicator after the fade.

mTimeEnd

F32 = 0
Edit documentation

Time, in seconds after the targeting mode starts, at which the fade ends.

mTimeStart

F32 = 0
Edit documentation

Time, in seconds after the targeting mode starts, at which the fade begins.