Page 1 of 1

Door Pull Chain

Posted: Tue Feb 09, 2016 10:18 pm
by RayB
I would like to trigger something when a door pull chain is pulled. Is this possible and if so how would you go about this. With all this component business I would think there has to be a way to do this.

Re: Door Pull Chain

Posted: Tue Feb 09, 2016 10:27 pm
by minmay
Pull chains are ordinary objects, just look at their definitions in the asset pack. You can easily add a connector to the PullChainComponent although you will need to do so dynamically with PullChainComponent:addConnector() rather than using the '+' button in the editor.

Re: Door Pull Chain

Posted: Tue Feb 09, 2016 10:34 pm
by THOM
Most easiest way would be to give a door the pullchain not by checking the box in it's editor-entry but by using the single pullchain-lever-object. With that you can choose everything that should be triggered by the pullchain like you could do with every other lever also.

EDIT: minmay was faster...

Re: Door Pull Chain

Posted: Thu Feb 11, 2016 4:01 am
by RayB
Thanks guys! Once again you have helped me through the fog.