ScarDoc

Start typing to search the SCAR reference.

Function
Table

Table_FillWithDefaultValues

Updates myTable by applying default values from the myDefaults table for any items that are not explicitly declared already

On this page
Table_FillWithDefaultValues(myTable, myDefaults, errorMessage)

Description

If the myDefaults table has any item with the value REQUIRED_DATA, then you are declaring that there is no default for this item and that you REQUIRE the user provides a value. You will get a Fatal Scar Error if these are left out, listing exactly which required keys are missing.

Parameters

  • myTableTablerequired
  • myDefaultsTablerequired
  • errorMessageStringoptional

Returns

Unknown

Source

Declared in the game's script sources at:

scar/table.scar