[Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
Maroonroon
Posts: 277
Joined: Sun Jul 06, 2014 5:03 pm
MOULa KI#: 0
Location: France
Contact:

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Post by Maroonroon »

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
Attachments
office_door_enable_disable_node_tree.png (996x1304)
office_door_enable_disable_node_tree.png (996x1304)
office_door_enabled_disabled_node_tree.png (423.86 KiB) Viewed 17024 times
office_door_open_close_node_tree_4.png (1663x2332)
office_door_open_close_node_tree_4.png (1663x2332)
office_door_open_close_node_tree_4.png (938.16 KiB) Viewed 17024 times
Last edited by Maroonroon on Tue Sep 08, 2020 6:04 am, edited 2 times in total.
Maroonroon
Posts: 277
Joined: Sun Jul 06, 2014 5:03 pm
MOULa KI#: 0
Location: France
Contact:

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Post by Maroonroon »

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.
Tsar Hoikas
Councilor of Technical Direction
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
MOULa KI#: 23335
Location: South Georgia
Contact:

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Post by Tsar Hoikas »

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
Maroonroon
Posts: 277
Joined: Sun Jul 06, 2014 5:03 pm
MOULa KI#: 0
Location: France
Contact:

Re: [Blender]SlidingDoor OpenClose&EnableDisable NodeTrees

Post by Maroonroon »

Ah ok, thank you very much. :)
Python File: Show Spoiler
Post Reply

Return to “Scripting”