State exit
From Second Life Wiki
| Languages: |
English • Deutsch • Español • ελληνικά • Français • עברית • Italiano • 日本語 • 한국어 • Nederlands • Magyar • Norsk • Dansk • Svenska • Türkçe • Polski • Português • Русский • украї́нська • 中文(简体) • 中文(繁體) |
| Volunteer translated pages are linked in blue, Google translated pages are linked in grey. Learn how to provide volunteer translations. | |
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Examples
default { state_entry() { llOwnerSay("in default state"); } touch_start(integer detected) { state other; } state_exit() { llOwnerSay("leaving default state"); } } state other { state_entry() { llOwnerSay("in state \"other\""); } touch_start(integer detected) { state default; } state_exit() { llOwnerSay("leaving state \"other\""); } }
Notes
While the default state_entry is triggered on script reset, state_exit is not triggered prior to the reset.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

