/ Published in: Other
Generic llDialog menu handler for Linden Scripting Language (LSL). Insert into the top of your LSL script.
llSetTimerEvent is used to control lag by shutting down the listen after 60 seconds. You must add
llSetTimer(0.0);
llListenRemove(handle_dlg);
to the timer() event to use this functionality. The llSetTimerEvent(60.0) may be removed otherwise.
llSetTimerEvent is used to control lag by shutting down the listen after 60 seconds. You must add
llSetTimer(0.0);
llListenRemove(handle_dlg);
to the timer() event to use this functionality. The llSetTimerEvent(60.0) may be removed otherwise.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
key owner; integer ch_dlg; integer handle_dlg; menu(string title, list buttons) { ch_dlg = (integer)(llFrand(99999.0) * -1); handle_dlg = llListen(ch_dlg,"","",""); llDialog(owner, title, buttons, ch_dlg); llSetTimerEvent(60.0); }