object.set_progress_bar

Objects can be made to display a progress bar whenever players stand inside of their shape. This function turns this behavior on or off, and also controls which players are allowed to see the progress bar.

Arguments

timer

The word none, or an integer constant indicating the index of an object.timer variable, or a relative alias of an object-timer variable prefixed with object. i.e. object.alias_name.

who

A group of players.

Example

for each object with label "koth_hill" do
   current_object.set_progress_bar(3, everyone)
end

alias capture_timer = object.timer[0]
for each object with label "territory" do
   for each player do
      current_object.set_progress_bar(object.capture_timer, mod_player, current_player, 1)
   end
end

for each object with label "ignore_me" do
   current_object.set_progress_bar(none, everyone)
end

See also