math_counter to display current value on screen

Pseudonym

2009-05-18 03:18:57

Hello :)

I would like to get a math_counter to display the current value on screen at any selected time. The value number would appear in the same style that a game_text would look like on the screen.

This can be used to update the number every second, so as to have a seconds timer running on screen.
It is possible to have lots of game_texts with numbers 1,2,3,etc. and just display them when the timer reaches a certain ammount, but this would mean alot of entities are needed (as for a seconds counter it wouldnt be just a few game_texts needed, it could exceed hundreds. Not so good.

Is there a really good way around this, thats as simple as just getting a value from the counter and displaying it, or is there a way to get the value from the counter and insert it into a game_text and just display that instead?

What do you think? :D

{EE}chEmicalbuRn

2009-05-18 05:21:42

wtf are you talking about?

boshed

2009-05-18 19:18:02

I don't know of any way to alter a game_text's contents :? .

Take a look at env_message, although that looks like it could turn out to be way more complicated and I don't know if it even works in DM.

boshed

2009-05-18 19:19:07

oops, that wasn't the edit button :oops: