Hello.
As far as i know, "function that is called whenever an event occurs in the engine". But, how does HUDPaint work, why do i have to call it if i want to draw on the HUD?
and how is it a hook?
"is drawing on the HUD an event?"
i mean, PlayerDeath hook is easy to understand. but HUDPaint keeps confusing me!
thanks.
Basically, it's just called the same as Think I believe.
[QUOTE=Drew P. Richard;24250264]Basically, it's just called the same as Think I believe.[/QUOTE]
Oh, ok thanks.
Think is called every tick whereas HUDPaint is called every frame, as far as I know.
[QUOTE=Entoros;24253380]Think is called every tick whereas HUDPaint is called every frame, as far as I know.[/QUOTE]
Thanks!
so, I... Can basically use it for purposes other than Drawing HUD text, boxes...etc
[QUOTE=Dave_Parker;24257469]But you really shouldn't.
Also I thought Think was every frame and Tick was every tick.. seems a bit more straightforward.[/QUOTE]
Hmmm? well it's a bit hard to know what to use with what!
Think just runs really fast. That's really all you need to know. Think is a good hook for just generic stuff that needs to update a lot -- i.e. if you wanted to set the position of an entity to match the position of another entity.
HUDPaint should only be used for drawing things on the HUD with the draw and surface libraries.
[QUOTE=Entoros;24267728]Think just runs really fast. That's really all you need to know. Think is a good hook for just generic stuff that needs to update a lot -- i.e. if you wanted to set the position of an entity to match the position of another entity.
HUDPaint should only be used for drawing things on the HUD with the draw and surface libraries.[/QUOTE]
makes sense, thanks.
Sorry, you need to Log In to post a reply to this thread.