ScarDoc

Start typing to search the SCAR reference.

Function
Prefab

Prefab_ApplyDefaults

Applies the defaults listed in the prefab schema to the instance data. Any items NOT included explicitly in the instance data will have default values pulled from the schema.

On this page
Prefab_ApplyDefaults(instance_data, prefab_schema)

Description

Applies the defaults listed in the prefab schema to the instance data. Any items NOT included explicitly in the instance data will have default values pulled from the schema.

Parameters

  • instance_dataTable/Stringrequired
  • prefab_schemaTablerequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/prefabs.scar