# 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.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3373

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetPing(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Ping, lp_unit, lp_index));
}

mods/swarm.sc2modbase.sc2data/TriggerLibs/SwarmLib.galaxy:194

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetPing(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_Ping, lp_unit, lp_index));
}