10-27-2011, 13:40
Hello,
This is a tutorial of something that is old, but I havent seen it in the site, :/ Is a tutorial about hud elements in 3D. It has the same effect as the death icons.
This is the way of making it for one certain team:
Lets make a function that makes it quicker to use:
Example:
You can do this same thing with other hud elems.
Thats it,
This is a tutorial of something that is old, but I havent seen it in the site, :/ Is a tutorial about hud elements in 3D. It has the same effect as the death icons.
Code:
text = newHudElem();
text.x = x;
text.y = y;
text.z = z;
text.alpha = alpha;
text.archived = true;
text setShader("shader name",width,height);
text setwaypoint(true,false);
This is the way of making it for one certain team:
Code:
text = newTeamHudElem(team);
text.x = x;
text.y = y;
text.z = z;
text.alpha = alpha;
text.archived = true;
text setShader("shader name",width,height);
text setwaypoint(true,false);
Lets make a function that makes it quicker to use:
Code:
MakeWorldText(x,y,z,alpha,shader,width,height)
{
text = newHudElem();
text.x = x;
text.y = y;
text.z = z;
text.alpha = alpha;
text.archived = true;
text setShader(shader,width,height);
text setwaypoint(true,false);
return text;
}
Example:
Code:
oma = self MakeWorldText(956,321,567,1,"weapon_onemanarmy",15,15);
You can do this same thing with other hud elems.
Thats it,