Forum

> > CS2D > Scripts > Hudtxt on objects
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hudtxt on objects

1 reply
To the start Previous 1 Next To the start

old Hudtxt on objects

khaled1968
User Off Offline

Quote
Hi.

I'm trying to make a script that allows me to customize HP for buildings. However, I still don't know how to place Image or Hudtxt on top of the objects.

Can someone help me?
edited 1×, last 10.02.23 07:07:27 am

old Re: Hudtxt on objects

Mami Tomoe
User Off Offline

Quote
You cannot (easily) place a text HUD on a map location due to the fact that HUD texts are HUD (head-up display) texts, and not map texts.
That means that you'll have to move the HUD text on the screen depending on where the player is standing.
Many attempts have been made and I'm fairly certain somebody uploaded their attempts somewhere on this website at some point (although I wasn't able to find it).

As for images, those can be placed on both the screen and the map.
Refer to cs2d lua cmd image to learn how to place an image on the map, as there are examples on how to do so.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview