# Value From Data Table (Player Group)

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

Returns a player group 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 — playergroup

native playergroup DataTableGetPlayerGroup(
	bool global,
	string name,
);

Category: Data Table / Load Value

# Examples

# mods/heroesdata.stormmod

GameLib.galaxy

// L3344
DataTableGetPlayerGroup(false, TriggerEventParamName(libGame_gv_eventID_CapturePointChangesOwner_C, libGame_gv_eventParam_CapturePointChangesOwner_CapturingPlayers_C))
// L4433
DataTableGetPlayerGroup(false, TriggerEventParamName(libGame_gv_eventID_MercCampCaptured_C, libGame_gv_eventParam_MercCampCaptured_Index_C))
// L4807
DataTableGetPlayerGroup(false, TriggerEventParamName(libGame_gv_eventID_MapObeliskOwnershipChange_C, libGame_gv_eventParam_MapObeliskOwnershipChange_CapturingPlayers_C))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L2796
DataTableGetPlayerGroup(libCOMI_gv_cMC_CoopAI_AttackForce_DataTableScope, libCOMI_gf_CM_CoopAI_AttackForce_ExcludedPlayers_Name(lp_unitTypeIndex))