Touch start
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 |
Description
! Event: touch_start( integer num_detected ){ ; }| 2 | Event ID |
Triggered by the start of agent clicking on task
| • integer | num_detected | – | Number of agents detected touching during the last clockcycle |
Examples
You can use numbers 0 through num_detected - 1 to get detected agent keys:
default { touch_start(integer num_detected) { integer i = 0; for(; i<num_detected; ++i) llWhisper(0, "Touched by " + llKey2Name(llDetectedKey(i))); } }
Notes
Do not change states from within the touch_start() event, since this will prevent the touch_end() event being called even if you did not define it and from this preserve a partial solve touch event chain across state transitions. To perform state transitions at a "touch" make use of the touch_end() event instead! See: SVC-3017[c]
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

