-clear command in jass
Moderator: Cheaters
-
- Newcomer
- Posts: 21
- Joined: February 16th, 2008, 8:49 am
-clear command in jass
Anyone mind posting the jass code for -clear to clear text off a screen like in TBR?
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: -clear command in jass
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()
If I'm not mistaken, it's this:
call ClearTextMessages()
-
- Newcomer
- Posts: 21
- Joined: February 16th, 2008, 8:49 am
Re: -clear command in jass
I didn't even know there was a jass section sorry about that.
Thanks for posting that Aero I'll give it a try.
Thanks for posting that Aero I'll give it a try.
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: -clear command in jass
Yeah, it is ClearTextMessages().
If you want to only clear text messages for a player, use this custom function.
Then to use it just do "call ClearTextMessagesForPlayer(<player>)"
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