widget.set_text

Set the HUD widget's text.

Arguments

text

The text to display. This is a persistent format string.

Example

for each player do
   script_widget[0].set_visibility(current_player, false)
   if current_player.number[0] == 1 then
      script_widget[0].set_visibility(current_player, true)
      script_widget[0].set_text("You are a zombie!")
   end
end

Notes