Sliding doors

Is it easy to synchronise 2 linked sliding doors ? Let's go !

First create your doors :

There is 3 primitives linked. The 2 doors are childs. Select the left door with option "Edit linked parts" and drop the script Setup Move in the inventory :

You get this menu :

So put your door in close position and click on "DONE". You get a new menu :

Change the position of the door to get the open state :

Then click on "DONE". You get this menu :

Select one of the 3 buttons : Owner cmd, Group cmd or All cmd.

Take care : dont select "Owner", "Group" or "All" because they dont send linked message for other scripts mover in the same object.

You get a new menu :

Select "Infinite". You get a new menu :

Select 5s. You get a new menu :

Select "Cosinus". You get a new menu :

Select "10s". You get a new menu :

Select 5s. You get a new menu :

Select "Cosinus". You get a new menu :

You can test your move with "Test" button and change all parameters :

When all is ok click on "End" button, you get a new menu :

Click on "Go to page". Copy the informations in the web page and paste them in a notecard that you call setupmove :

Now drop this notecard and the script Simple Move in the inventory of the door primitive :

Take care to use option "Edit linked parts" ! Now your left door is ready ! You can add sounds for the 2 states :

The sounds must have these names : SoundPos1 and SoundPos2.

Follow the same process to set the right door. Then you get new parameters and you create a new notecard setupmove for this right door :

Look at the last line, this is the channel number. You must change it to get the same that the one for the left door :

Now you can drop the notecard and the script Simple Move in the inventory of the right door primitive :

All is ok now. You can click on left or right door, the 2 doors are trigered.