Drawing on a specific player's scores HUD.

Status
Not open for further replies.

jameds

jartha
Sonic Team Junior
Kart Krew™️
I have a script that sets a "blind timer" when a player is tagged.
I want to draw on that player's HUD, but the scores HUD hook doesn't take a player parameter.
 
It actually does.
When making a function for the HUD hook, the second argument passed to the function is a player.
 
I'm talking about the scores hud hook.
It only has one parameter, a drawer.
 
Oh, I didn't read that.
You could make a local variable outside (and above) a game HUD hook.
This hook would make a comparison to see if the current focused player is blind or not, and stores it in the local variable, which the score HUD would read and draw accordingly.
It won't update when the current player is not blind anymore when the scoreboard is open, though.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top