Entity creation parameters||doc135366

September 20, 2022


Create parameters that need to be passed when creating an entity object. It consists of a table, which mainly describes which configuration information the entity object is created with, the entity's name, coordinates, and other information.

Composition parameters

parameter name type Description
cfgName string entity configuration name
name string entity name
map Map map instance
pos Vector3 generate coordinates
owner Object owner


local createParams = {
    cfgName = "myplugin/entity",
    name = "entity",
    map = World.CurWorld:getMap("map001"),
    pos = Lib.v3(0,1,0),