Call of Duty Script Documentation

# fadeovertime( <time> )

## Module

    HUD

## Summary

    Set a hud element to transition in color (or alpha) over time.  Normally setting the color (or alpha) of an element causes an immediate visual change. However, if the color (or alpha) gets set within <time> after calling fadeOverTime, then the hud element will transition to the new color over the remaining <time>.

## Call this function on

    Hud Element

## Example

    level.introstring1 fadeOverTime(1.2);  level.introstring1.alpha = 0.3;  This will transition the alpha from whatever it was before to the new value of 0.3 over 1.2 seconds.

## Minimum Number of arguments: 1

    1 : <time> The time to fade the element in seconds

## Number of optional arguments: 0

Return to Function List