SetHudTextParamsEx Function

Sets the HUD parameters for drawing text. These parameters are stored globally, although nothing other than this function and SetHudTextParams modify them.

This is the same as SetHudTextParams(), except it lets you set the alternate color for when effects require it.

void SetHudTextParamsEx(float x, float y, float holdTime, int color1[4], int color2[4], int effect, float fxTime, float fadeIn, float fadeOut)

Parameters

float x

x coordinate, from 0 to 1. -1.0 is the center.

float y

y coordinate, from 0 to 1. -1.0 is the center.

float holdTime

Number of seconds to hold the text.

int[4] color1

First color set, array values being [red, green, blue, alpha]

int[4] color2

Second color set, array values being [red, green, blue, alpha]

int effect

0/1 causes the text to fade in and fade out. 2 causes the text to flash[?].

float fxTime

Duration of chosen effect (may not apply to all effects).

float fadeIn

Number of seconds to spend fading in.

float fadeOut

Number of seconds to spend fading out.