BJDebugMsg inclarities

roXplosive

New Member
Reaction score
15
Well i am wondering right now why isn't BJDebugMsg dissapearing from the screen ; after all JassCraft shows it like

function BJDebugMsg takes string msg returns nothing
local integer i = 0
loop
call DisplayTimedTextToPlayer(Player(i),0,0,60,msg)
set i = i + 1
exitwhen i == bj_MAX_PLAYERS
endloop
endfunction

I would like to display messages to players in the same position / font / size as BJDebugMsg but I would also like the message to dissapear . I am thinking why the time is ~20 sec ??? Also I am wondering why BJDebugMsg is regarded as a method to make leaks into your code .
 

Exide

I am amazingly focused right now!
Reaction score
448
BJDebugMsg should disappear after a few seconds automatically.

Try:
JASS:

call DisplayTextToPlayer(Player(0), 0, 0, "MESSAGE")
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
Well i am wondering right now why isn't BJDebugMsg dissapearing from the screen ; after all JassCraft shows it like

function BJDebugMsg takes string msg returns nothing
local integer i = 0
loop
call DisplayTimedTextToPlayer(Player(i),0,0,60,msg)
set i = i + 1
exitwhen i == bj_MAX_PLAYERS
endloop
endfunction

I would like to display messages to players in the same position / font / size as BJDebugMsg but I would also like the message to dissapear. I am thinking why the time is ~20 sec ???

The reason it takes so long to go away is because the time input for DisplayTimedTextToPlayer is 60 on BJDebugMsg. If you want a similar function that uses variable time, use either DisplayTimedTextToForce or, if you don't want to deal with forces, make your own function, a very basic way being a simple modification to BJDebugMsg:

JASS:

function DisplayTimedText takes string msg, real duration returns nothing
    local integer i = 0
    loop
        call DisplayTimedTextToPlayer(Player(i),0,0,duration,msg)
        set i = i + 1
        exitwhen i == bj_MAX_PLAYERS
    endloop
endfunction



Also I am wondering why BJDebugMsg is regarded as a method to make leaks into your code .
???
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top