hud_target_object
Type: ObjectWhen setting the text of an object's waypoint, you can use this value with format string parameters in order to display information about the object in question.
This value is read-only.
Example
-- -- Have an object's waypoint display the name of a player, based on one of -- the object's player variables. -- if current_object.player[0] != no_player then current_object.set_waypoint_visibility(everyone) current_object.set_waypoint_text("%p", hud_target_object.player[0]) end