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

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetActor(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Actor, lp_unit, lp_index));
}

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetActor(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_Actor, lp_unit, lp_index));
}