Opening curtains?

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Opening curtains?

by TumeniNodes » Thu Jun 16, 2016 17:44

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
Flick?... Flick who?
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Opening curtains?

by azekill_DIABLO » Fri Jun 17, 2016 10:28

maybe use on rightclick and register the curtain node "opened" then swap between them
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Re: Opening curtains?

by TumeniNodes » Fri Jun 17, 2016 11:21

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
Flick?... Flick who?
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Opening curtains?

by Napiophelios » Fri Jun 17, 2016 11:27

Here are a couple to look at:
http://krock-works.16mb.com/MTstuff/mod ... q=curtains
Also check out castle (tapestry.lua) and xdecore
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Re: Opening curtains?

by TumeniNodes » Fri Jun 17, 2016 11:51

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.
Flick?... Flick who?
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron