widget.set_visibility

Control whether a player can see this HUD widget.

Arguments

who

A player that is or was present in the current match.

visible

The word true or the word false.

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