DCS func get stat

From DCS World Wiki - Hoggitworld.com

Envrioment: Server
Function: get_stat Added with: 2.5.0
Member Of: net
Syntax: number net.get_stat(number playerID , number statID)
Description: Returns a statistic from a given player.


 net.PS_PING  (0) - ping (in ms)
 net.PS_CRASH (1) - number of crashes
 net.PS_CAR   (2) - number of destroyed vehicles
 net.PS_PLANE (3) - ... planes/helicopters
 net.PS_SHIP  (4) - ... ships
 net.PS_SCORE (5) - total score
 net.PS_LAND  (6) - number of landings
 net.PS_EJECT (7) - of ejects

Return Value: number
Return Example:
Related Functions: Network API: send_chat, send_chat_to, recv_chat, load_mission, load_next_mission, get_player_list, get_my_player_id, get_server_id, get_player_info, kick, get_stat, get_name, get_slot, set_slot, force_player_slot, lua2json, json2lua, dostring_in, log, trace