Jump to content

Chancing door by script


bebbe777

Recommended Posts

Place 2 doors in one location. Set one [ door 1 ] to be the enable parent of the other [ door 2 ]. Set door 2 as initially disabled and set to be in the opposite enable state of its parent. Place a switch near the doors with an object script attached that toggles the enable state of door 1. Something like:

 

scn DoorToggleSCRIPT

 

short Toggle

 

Begin OnActivate

 

if ( Toggle == 0 )

Door1REF.disable

set Toggle to 1

elseif ( Toggle == 1 )

Door1REF.enable

set Toggle to 0

endif

END

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...