Re: Ask a simple question, get a simple answer
Posted: Wed Aug 31, 2016 1:16 am
Example object: ( Goes in mod_assets/scripts/object.lua )
Code: Select all
defineObject{
name = "epic_castle_pillar_01",
baseObject = "base_pillar",
components = {
{
class = "Model",
name = 'pillar',
offset = vec(0,-3,0),
model = "assets/models/env/castle_pillar_tall_01.fbx",
staticShadow = true,
},
{
class = "Model",
name = "tapestry",
offset = vec(0,5.3,.325),
model = "assets/models/env/castle_wall_cloth.fbx",
},
{
class = "Model",
name = "crossbeam",
offset = vec(0,5.3,.25),
model = "assets/models/env/mine_support_beam_01.fbx",
},
{
class = "Model",
model = "assets/models/monsters/crowern01.fbx",
storeSourceData = false,
offset = vec(0,12.6,0),
name = "finial",
material = "castle_inside_pillar",
},
{
class = "Model",
name = "base",
offset = vec(.20,0,0),
rotation = vec(0,90,0),
model = "assets/models/env/beach_pedestal.fbx",
staticShadow = true,
},
},
minimalSaveState = true, --==========<< TRUE
placement = "floor",
editorIcon = "256",
}