Forum

> > CS2D > Scripts > Hudtxt on objects
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hudtxt on objects

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hudtxt on objects

khaled1968
User Off Offline

Zitieren
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?
1× editiert, zuletzt 10.02.23 07:07:27

alt Re: Hudtxt on objects

Mami Tomoe
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht