DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdateDistanceWidget()

void UpdateDistanceWidget ( int index,
PlayerBase other_player )

См. определение в файле PluginRemotePlayerDebugClient.c строка 127

128 {
129 float distance = vector.Distance(GetGame().GetCurrentCameraPosition(), other_player.GetPosition());
130 m_DistanceWidget[index].SetText(distance.ToString() + "m");
131 }
ref TextWidget m_DistanceWidget[MAX_SIMULTANIOUS_PLAYERS]
Определения PluginRemotePlayerDebugClient.c:18
proto string ToString(bool simple=true)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
Определения EnConvert.c:106
proto native CGame GetGame()

Перекрестные ссылки vector::Distance(), GetGame(), m_DistanceWidget и float::ToString().

Используется в UpdateWidgetsStats().