Prefab
25 functions
- Prefab_ApplyAlias
- Prefab_ApplyDefaultsApplies 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.
- Prefab_ApplySchemaToDataTable
- Prefab_DoActionCalls an action function with a given name on an instance, making sure it calls the right version for the type of Prefab. Instance can be a string, this will convert it.
- Prefab_DoPreroll
- Prefab_ForcePostInitFinalize the initialization of any prefab instances that have been run through Prefab_Init(). This is automatically called one frame after a prefab is initialized, but you can force it early if necessary.
- Prefab_GenerateUniqueInstanceName
- Prefab_GetAliasName
- Prefab_GetAllOfTypeReturns a table of all current prefabs matching the instance type
- Prefab_GetInstanceReturns the instance data for a given instance, specified by a number of methods.
- Prefab_GetNameSetOfTypeReturns a table of all current prefabs matching the instance type where the key to each entry in the table is the name of the prefab
- Prefab_GetPrerollDuration
- Prefab_HasPreroll
- Prefab_InitInitialize a specific prefab instance. In many cases, this is all you need to do (see the documentation for the specific prefab for details)
- Prefab_InitAll
- Prefab_IsActiveChecks if a prefab instance is currently running
- Prefab_IsValidReturns if a String is a valid prefab
- Prefab_Load
- Prefab_PresetCompleteCalled after Preset is called on all modules
- Prefab_ReloadAll
- Prefab_ReplaceDataWithProperType
- Prefab_ResetStop and restart a prefab instance, pulling a fresh set of the instance data from the WB-exported prefabs. This is meant for testing and debug purposes, rather than use in mission scripts.
- Prefab_ResetFromWorldBuilder
- Prefab_StopStops a prefab instance from continuing to run.
- Prefab_TriggerTriggers the specified prefab