# Value From Data Table (Ping)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns ping value from a data table. Data tables allow you to store and recall values using a string identifier.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name

Returns — int [ ping ]

native int DataTableGetPing(bool global, string name);

Category: Data Table / Load Value

# Examples

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L3373
DataTableGetPing(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Ping, lp_unit, lp_index))

# mods/swarm.sc2mod

SwarmLib.galaxy

// L194
DataTableGetPing(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_Ping, lp_unit, lp_index))