EntityFactory:CreateFromBlueprint

EntityFactory:CreateFromBlueprint(blueprint: DataContainer, transform: LinearTransform, variation: int, parentRepresentative: DataContainer | nil): EntityBus | nil

Parameters

Name Type Description
blueprint DataContainer
transform LinearTransform
variation int
parentRepresentative DataContainer | nil

Returns

Type Description
EntityBus | nil

Example

Hooks:Install('EntityFactory:CreateFromBlueprint', 1, function(hook, blueprint, transform, variation, parentRepresentative)
    -- Do stuff here.
end)
Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)