object.apply_shape_color_from_player_member

This function recolors an object's shape boundary baesd on the armor color of the player referred to by an object.player variable on the object. The function's argument specifies which object.player variable to use.

This function is used in King of the Hill FFA modes to recolor the hill to match the player currently controlling it.

Arguments

member

An integer constant indicating the index of an object.player variable, or an object-relative player variable e.g. object.player[0], or an alias of such.

Example

alias owner = object.player[1]

for each object with label "koth_hill" do
   --
   -- The next three lines do the exact same thing:
   --
   current_object.apply_shape_color_from_player_member(1)
   current_object.apply_shape_color_from_player_member(object.player[1])
   current_object.apply_shape_color_from_player_member(object.owner)
end

See also