# Save Data Table Value (Unit Reference) - Instance

Grammar — Save value as name in the data table instance instance
FlagsNative | Action

Saves a unit value into a data table instace. If a unit variable is used, the current value of the variable will be checked whenever this value is retrieved from the 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

  • int [ datatable ] — Instance
  • string — Name
  • unitref [ unit ] — Value

Returns — void

native void DataTableInstanceSetUnitRef(
	int instance,
	string name,
	unitref value,
);

Category: Data Table / Instance Version / Save Value

# Examples

— None found —