[Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Postby Maroonroon » Sun Sep 06, 2020 9:20 am

Hello :)
So... After a break, I have finaly finish converting my Blend files to Korman, re-scale the objects (for some other reasons), and then testing the Node Tree in game (Complete Chronicles only, for now).

Note:
- Take a look at the nodes elements titles, they gives informations.
- The sounds used are probably not the definitive sounds.


Here's my working "OfficeDoorOpenClose" Node Tree (for a door with "exterior one shot animations", but it's easy to delete the "exterior one shot animations"):
Show Spoiler


And here's my working "OfficeDoorEnableDisable" Node Tree (for a "lockable from inside only" door, but it's easy to add "lockable from ouside" elements in this Node Tree, using the "OfficeDoorOpenClose" Node Tree as model):
Show Spoiler


SDL:
Show Spoiler
Last edited by Maroonroon on Tue Sep 08, 2020 6:04 am, edited 2 times in total.
User avatar
Maroonroon
 
Posts: 219
Joined: Sun Jul 06, 2014 5:03 pm
Location: France

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Postby Maroonroon » Mon Sep 07, 2020 7:14 am

Now I have to understand how to set the Python file...

For only 1 door, the "OfficeDoor" with the "OfficeDoorClosed" variable, the Python file is like this:

Python File: Show Spoiler


But how to add in it the "OfficeDoorEnabled" variable?
And how to add another door, the "LivingRoomDoor" for example, with the "LivingRoomDoorClosed" variable and the "LivingRoomDoorEnabled" variable?
Last edited by Maroonroon on Thu Sep 10, 2020 8:19 am, edited 1 time in total.
User avatar
Maroonroon
 
Posts: 219
Joined: Sun Jul 06, 2014 5:03 pm
Location: France

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Postby Tsar Hoikas » Tue Sep 08, 2020 8:51 am

You don't need to add anything to your Age's python file for doors - the python files you specified in the node tree handle everything for you. The stuff you have in the age python file related to OfficeDoor and OfficeDoorClosed doesn't do anything of relevance.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Postby Maroonroon » Tue Sep 08, 2020 1:47 pm

Ah ok, thank you very much. :)

Python File: Show Spoiler
User avatar
Maroonroon
 
Posts: 219
Joined: Sun Jul 06, 2014 5:03 pm
Location: France

Previous

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron