Checking a door's state is incredibly easy. Each door contains a property named doorState. By reading the doorState property, you can find out whether the door is opened, closed or opening.
Here's an example of finding out the state:
Code:(if( == (aDoor:doorState) DOOR_OPEN)
Print("The door is open")
)(else
(if( == (aDoor:doorState) DOOR_CUED)
Print("The door is opening")
)(else
Print("The door is closed")
)
)
That sums it up!
< Previous: Chapter 5 - Allowing Actors to Walk Through/Over Views/Props Next: Chapter 7 - Creating Custom Buttons >Top
You can help keep The Sierra Help Pages and its affiliates alive by helping to defray some of the costs of hosting this site. If it has been of help to you, please consider contributing to help keep it online.Thank you.
The Sierra Help Pages | Sierra Game Help | Walkthroughs | Hints, Tips & Spoilers | Utilities | Links | SHP Forums | Search
© 2013 to present The Sierra Help Pages. All rights reserved. All Sierra games, artwork and music © Sierra.