# Save Data Table Value (Revealer)

Grammar — Save value as name in the scope|Global/Local data table
FlagsNative | Action

Saves a revealer value into a data table. Data tables allow you to store and recall values using a string identifier. If you save a data table value using a string identifier that already exists, you will overwrite the old value, even if it is a different data type than the value you are saving.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name
  • revealer — Value

Returns — void

native void DataTableSetRevealer(
	bool global,
	string name,
	revealer val,

Category: Data Table / Save Value

# Examples

# mods/starcoop/starcoop.sc2mod


// L8279
DataTableSetRevealer(true, ("CM_Revealer_" + IntToString(libCOMI_gv_cM_RevealerCount)), VisRevealerLastCreated())
// L8301
DataTableSetRevealer(true, ("CM_Revealer_" + IntToString(libCOMI_gf_CM_RevealerIndex(lp_r))), null)