ScarDoc

Start typing to search the SCAR reference.

Function
Prefab

Prefab_GetInstance

Returns the instance data for a given instance, specified by a number of methods.

On this page
Prefab_GetInstance(instance)

Description

This normalizes your instance data. You can pass in the instance name as a string, a data table with an instance subtable (i.e. the input params from an event function) or a real instance data table, and it normalizes the format and returns you the instance data table.

Parameters

  • instanceTable/Stringrequired

Returns

InstanceData

Source

Declared in the game's script sources at:

scar/prefabs.scar