Page 1 of 1

Defining Pillars

Posted: Mon Oct 20, 2014 9:53 am
by Mysterious
Hi guys just a quick question here. Does anyone know how to define a Pillar Object I have tried the below but does not work. Not sure what I am doing wrong but sure there is simple fix. Thxs :)

Code: Select all

defineObject{
name = "wall_tower_1",
components = {
{
class = "Model",
model = "mod_assets/models/houses/walltower.fbx",
},

{
class = "Pillar",  --- This does not work ---
hitSound = "barrel_hit",
hitEffect = "hit_wood",
},

},
placement = "wall",
editorIcon = 120,
}

Re: Defining Pillars

Posted: Mon Oct 20, 2014 10:19 am
by Leki
remove pillar class for now, then

Code: Select all

placement = "pillar",
no hit effect, you cannot hit pillar - it's on the edge of the cell.

Re: Defining Pillars

Posted: Mon Oct 20, 2014 10:53 am
by Mysterious
Thxs Leki will try it, yeah I know the sound is not meant to be there I am just practicing getting models into my mod :)

EDIT: Thxs Leki it works awesome, do you know the editorIcon? Thxs again :)

Re: Defining Pillars

Posted: Tue Oct 21, 2014 8:58 pm
by Leki
Mysterious wrote:Thxs Leki will try it, yeah I know the sound is not meant to be there I am just practicing getting models into my mod :)

EDIT: Thxs Leki it works awesome, do you know the editorIcon? Thxs again :)
icon = 100

New icons are unknown for the moment, but you can use old ones for the moment.
Image