Search Unity

3DGamekit door auto-close

Discussion in 'Community Learning & Teaching' started by scarpelius, Apr 3, 2019.

  1. scarpelius

    scarpelius

    Joined:
    Aug 19, 2007
    Posts:
    966
    Hi,

    I am trying to use the PressurePad and DoorSmall to mimic the behavior of an automated door: when player get close, the door open and when he gets through (or exit the trigger) the door shuts down. I've tried to look at the code, but due to the OOP inheritance I could not figure out the logic of the scripts. Also the documentation I found is only about open doors that stay open.
    I do not have time to test this endlessly until it I figure out if it possible, so I wonder if someone make it work.

    Thanks in advance!