• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Text at Center

Status
Not open for further replies.

Andrelius

A

Andrelius

I've seen maps where there is text displayed at the center of the screen. I can't seem to do this with the normal Game text display. How do I do it? Plus is it possible to change the size of the text also?
 
Or you can just do it properly...

JASS:
native DisplayTextToPlayer          takes player toPlayer, real x, real y, string message returns nothing
native DisplayTimedTextToPlayer     takes player toPlayer, real x, real y, real duration, string message returns nothing
native DisplayTimedTextFromPlayer   takes player toPlayer, real x, real y, real duration, string message returns nothing

Eg:

  • Custom script: call DisplayTimedTextToPlayer( Player( 0 ), 1, 1, 5, "I'm cool" )
Where 0,0 is the normal text display point
 
Status
Not open for further replies.
Back
Top