# Value From Data Table (Order)

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

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

native order DataTableGetOrder(bool global, string name);

Category: Data Table / Load Value

# Examples

mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmodbase.stormdata/LibMHtM.galaxy:1747

    Wait(0.125, c_timeGame);
    UnitSetState(lv_heroUnit, c_unitStateOrdersPaused, false);
    UnitIssueOrder(lv_heroUnit, DataTableGetOrder(true, libMHtM_gf_GetOrderDataTableValueString(lv_heroUnit)), c_orderQueueReplace);
    DataTableValueRemove(true, libMHtM_gf_GetOrderDataTableValueString(lv_heroUnit));
    UnitBehaviorRemove(lv_heroUnit, "HauntedMinesMineShaftInvulnerableUnstoppableBehavior", 1);