local_player

a.k.a. hud_playerType: Player

This value can be used with HUD widgets and object waypoints to display different information for each player. It refers to the player that the widget or waypoint is being shown to.

This value is read-only.

Example

alias speed_raw = player.number[0]
alias speed_kph = player.number[1]
declare player.speed_raw with network priority local
declare player.speed_kph with network priority local
--
-- Allow each player to see how fast they're moving.
--
for each player do
   script_widget[0].set_text("%n KPH", local_player.speed_kph)
end
on local: for each player do
   current_player.speed_raw = current_player.biped.get_speed()
   current_player.speed_kph = current_player.speed_raw
   current_player.speed_kph *= 109
   current_player.speed_kph /= 100 -- to KPH
end

See also