Page 1 of 1

Opening curtains?

PostPosted: Thu Jun 16, 2016 17:44
by TumeniNodes
Howdy doo,
It's everyone's favorite "do it for me please" modder :P

Ok, so I have been trying to figure out how to (if possible) create a Lua script, which would allow to have a long curtain, rather than a door..., and to be able to open it with a right click (same as opening a regular door), but the curtain pulls to the side, toward the side.
The problem? I still really ssssss tink at Lua. I am able to look at existing mods, and tinker with different things but, to literally create my very own script, I'm useless : (
I've been reading through all I can regarding Lua, examples etc. but unfortunately, when I read an example, I am unable to do anything different other than the exact example (my own learning issues).
Wondering if I may be able to get some help to figure this out? I was thinking of starting off with the basic parts of the doors mod, and attempting to make alterations there, until I hopefully get the results I am looking for?
Anyway, any help will be greatly appreciated.
Thank you

Re: Opening curtains?

PostPosted: Fri Jun 17, 2016 10:28
by azekill_DIABLO
maybe use on rightclick and register the curtain node "opened" then swap between them

Re: Opening curtains?

PostPosted: Fri Jun 17, 2016 11:21
by TumeniNodes
azekill_DIABLO wrote:maybe use on rightclick and register the curtain node "opened" then swap between them

That's the idea. I'm playing with blender trying to make a mesh for both open and closed door/drapes. I have been looking around for similar scripts to get an idea of how to implement the actions

Re: Opening curtains?

PostPosted: Fri Jun 17, 2016 11:27
by Napiophelios
Here are a couple to look at:
http://krock-works.16mb.com/MTstuff/mod ... q=curtains
Also check out castle (tapestry.lua) and xdecore

Re: Opening curtains?

PostPosted: Fri Jun 17, 2016 11:51
by TumeniNodes
Napiophelios wrote:Here are a couple to look at:
http://krock-works.16mb.com/MTstuff/mod ... q=curtains
Also check out castle (tapestry.lua) and xdecore


The scripts from one of these has to be close to what I'm looking for. Thank you.