BJDebugMsg

From WarCraft3

Jump to: navigation, search

Template:jass/Blizzard.j This article is part of the Blizzard.j article series.


Blizzard.j

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
Confused? Jass help forum!

Outputs a message to all players.

Parameters

msg

The message to display.


Public Reception

BJDebugMsg is one of the few BJs that are accepted to be used regularly due to the fact that the syntax is small and easy to use in comparison to DisplayTextToPlayer.

Personal tools