-clear command in jass

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Korgoth
Newcomer
Posts: 21
Joined: February 16th, 2008, 8:49 am

-clear command in jass

Post by Korgoth »

Anyone mind posting the jass code for -clear to clear text off a screen like in TBR?
Bushido

Re: -clear command in jass

Post by Bushido »

next time , try to post in the right section ;)
[Moved to jass section]
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: -clear command in jass

Post by Aero »

I don't have my native list with me but it's something really simple.

If I'm not mistaken, it's this:
call ClearTextMessages()
User avatar
Korgoth
Newcomer
Posts: 21
Joined: February 16th, 2008, 8:49 am

Re: -clear command in jass

Post by Korgoth »

I didn't even know there was a jass section sorry about that.

Thanks for posting that Aero I'll give it a try.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: -clear command in jass

Post by Aero »

Yeah, it is ClearTextMessages().

If you want to only clear text messages for a player, use this custom function.

Code: Select all

function ClearTextMessagesForPlayer takes player p returns nothing
if GetLocalPlayer()==p then
call ClearTextMessages()
endif
endfunction
Then to use it just do "call ClearTextMessagesForPlayer(<player>)"