Posted: October 22nd, 2006, 11:30 pm
Hud's.
Create using "var = newHudElem()" or a client hud... "var = newClientHuDElem(self)"
Search for 'hudelem' inside the gametype gsc files, that will show you how to make the hud.
Then to update the hud values, you need 2 things...
Firstly if you want to update a text value, you must have precached the text first (and also to remove errors, localise it also) If you want just a number, it doesn't need prechached.
To store a value, use...
self.<var> = value;
for example, to get the score of a player, the game has already used self.score
Look in the gametypes files to creating a clock.
Create using "var = newHudElem()" or a client hud... "var = newClientHuDElem(self)"
Search for 'hudelem' inside the gametype gsc files, that will show you how to make the hud.
Then to update the hud values, you need 2 things...
Firstly if you want to update a text value, you must have precached the text first (and also to remove errors, localise it also) If you want just a number, it doesn't need prechached.
To store a value, use...
self.<var> = value;
for example, to get the score of a player, the game has already used self.score
Look in the gametypes files to creating a clock.