Jump to content

Drawing a string


GargamelLeNoir

Recommended Posts

Yep. I know it's shockingly basic, but I don't know how to do it. I didn't find a tutorial about it, I tried stealing this line from another mod : 

 

getTextManager():DrawString(500, 500, textToDisplay);
 
But it doesn't do anything. No exception thrown either. I've tried with other values (like half of the width/height of the screen, or 100/100), nothing.
Thanks again for any help, and sorry for probably missing something shamefully obvious.
Link to comment
Share on other sites

The easiest solution would be to use player:Say('Text I want to say') ... that would display the text above the player's head like shouting.

Of course you could use the drawString() function with the event I used for the coordinate viewer (can't remember what it's called) and simply remove / hide the string after a while.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...