Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
zonekiller

trying to put Names above your head

Recommended Posts

Im looking for a script or a way to put names above the heads of players

i have seen a mission with this in it

does anyone know how to or of a script that may do this

Thanks

ZoneKiller

Share this post


Link to post
Share on other sites

AAS has it, CTB and Domination.

Share this post


Link to post
Share on other sites
What for?

You can read the names by pointing with mouse to them.

I personally wouldn't like that "names on head"-feature.

To recognize your buddies without having to point at them, which requires you to play on cadet/regular.

Share this post


Link to post
Share on other sites
What for?

You can read the names by pointing with mouse to them.

I personally wouldn't like that "names on head"-feature.

It doesn't matter what you personally would or would not like. I don't want to be harsh, but there really isn't much good input from that quote..

And I believe that Domination has this feature indeed, I guess you can watch the mission files to figure out how they did it:)

Share this post


Link to post
Share on other sites

you need to use

_ScreenPos = worldToScreen (getpos _unit);

i think you will also need to check the boundingBox size. to pos the text at the right hight.

since

_ScreenPos = worldToScreen (getpos _unit);

will give you ground level pos i think.

altho. you can do as other suggested,, and go look into other missions how they did it,,

Share this post


Link to post
Share on other sites

I have a tag feature in V3.00 of the scriptpack - currently only used to tag campers in DM but will probably be extended for more general use. See

about 40secs in to get an idea of it in action.

The basic principle if you want to do it yourself is to create a resource with lots of text controls. Each player you want to tag gets assigned one of these then you use worldToScreen as nuxil says. You can just add a meter to the vertical pos of the player to get the tag to float above their head.

Edited by sbsmac

Share this post


Link to post
Share on other sites

Thanks i will look into it

what would be realy good is if you could make names out of partical effects

Share this post


Link to post
Share on other sites
Sign in to follow this  

×