# Value From Data Table (Actor)

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

Returns an actor 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 — actor

native actor DataTableGetActor(bool global, string name);

Category: Data Table / Load Value

# Examples

# mods/heroesdata.stormmod


// L3325
DataTableGetActor(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Actor, lp_unit, lp_index))

# mods/swarm.sc2mod


// L158
DataTableGetActor(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_Actor, lp_unit, lp_index))