DocsMegalithObjects and the world
Waypoints
Halo 3's objective navpoints over an object, with Reach's calls:
set_waypoint_visibility(who)everyone,allies(the players of its team),enemies(the other teams; everyone, when it has none), a player, a team such ascurrent_player.team, orno_one. None show until this is set.set_waypoint_icon(icon)speaker,dead_teammate(a cross),check,bullseye,diamond(the default),bomb,flag,skull,crown,vip(a star),padlock, orterritory, N(the number N, 1 to 9).set_waypoint_priority(p)blinkmakes it blink;low,normalandhighdraw the same.set_waypoint_timer(n | none)- Show this object's timer
nover its icon, or hide the timer withnone. Halo 3's HUD shows whole seconds left; Reach's HUD uses its own timer ring. set_waypoint_text("text", values)- Show text over the waypoint icon. Timer and text changes reach every player, including joiners, on Halo 3's HUD too.
A waypoint is blue to its object's team, red to the others and gray over an object with no team; off screen, an arrow at the screen's edge points to it, as Halo 3's objectives' do. Assigning current_object.team also gives the object itself that team until the round ends: a flag takes the team's color on every PC. A player's body keeps its player's team. Any number of objects may keep waypoint settings; at most 64 show at once, the highest priorities first, then the oldest objects'. One goes with its object.
Mark a fallen teammate for their team
on object death: do
killed_object.set_waypoint_icon(dead_teammate)
killed_object.set_waypoint_visibility(current_player.team)
end
