Page 1 of 2

lock placement prob

Posted: Tue Jan 01, 2013 3:43 pm
by hyteria
hello

i tried to move a lock in space , this work really great with height but nothing happen with witdh

cloneObject{
name = "lock_right",
baseObject = "lock",
witdh = 1,
placement = "wall",
editorIcon = 20,
}

nothing change , any suggestion or this is not possible?

Re: lock placement prob

Posted: Tue Jan 01, 2013 3:49 pm
by Neikun
One thing, you've spelled width wrong.
Also I don't think that's a valid scripting line anyway.
You will have to use the GMT to move the model in 3d space.

Re: lock placement prob

Posted: Tue Jan 01, 2013 3:51 pm
by hyteria
sorry i dont understand what you mean (
have you an example?

Re: lock placement prob

Posted: Tue Jan 01, 2013 4:02 pm
by Neikun
So if you open John Wordsworth's GMT (Grimrock Model Tool Kit) and use it to open a model of a lock, you can select the RootNode and translate it. There are three boxes beside the translate button. They are (in order) the X,Y,Z axis. So whatever value you put in those boxes, it will translate that many values across those axis.

EDIT: Pictorial reference
Image

Here I have moved the lock model -1 value along the X axis. In other words, I have moved it 1/3 of a square left.

Re: lock placement prob

Posted: Tue Jan 01, 2013 4:08 pm
by hyteria
thx i m gonna check that and hope to understand hehe

Re: lock placement prob

Posted: Tue Jan 01, 2013 4:12 pm
by Neikun
Then to define it in your dungeon, just clone a regular lock and put whatever you saved this one as, as your model file.

Happy new year! =D

Re: lock placement prob

Posted: Tue Jan 01, 2013 10:06 pm
by hyteria
Image

thx ! )

Re: lock placement prob

Posted: Tue Jan 01, 2013 10:10 pm
by Komag
now that's a lot of locks!!

Re: lock placement prob

Posted: Tue Jan 01, 2013 10:18 pm
by hyteria
yes this will be a nice puzzle , locks all over walls in entire room and only ONE key on an altar..... :)

Re: lock placement prob

Posted: Wed Jan 02, 2013 1:48 am
by JohnWordsworth
Lol! Look at all of those locks!

If you want to avoid the clipping problem on the ones that aren't displaying properly, you could also translate those locks in the Z axis (probably using a tiny negative value, like -0.05 in the Z translate box).