add listen handle

This commit is contained in:
vm 2017-08-27 10:24:07 +10:00 committed by Sei-Lisa
parent e03807caa7
commit 001bfa1ecd

View file

@ -25,6 +25,7 @@ list objects_to_update;
list objects_files; list objects_files;
integer menu_handle; integer menu_handle;
key av; key av;
integer listenhandle;
particles_on(key target) particles_on(key target)
{ {
llParticleSystem([ llParticleSystem([
@ -56,7 +57,7 @@ default
state_entry() state_entry()
{ {
llParticleSystem([]); llParticleSystem([]);
llListen(pin, "", "", ""); listenhandle=llListen(pin, "", "", "");
} }
on_rez(integer x) on_rez(integer x)
{ {
@ -64,6 +65,8 @@ default
} }
timer() timer()
{ {
llSetTimerEvent(0);
llListenRemove(listenhandle);
llRegionSayTo(av, 0, "Found " + (string)llGetListLength(objects_to_update) + " objects..."); llRegionSayTo(av, 0, "Found " + (string)llGetListLength(objects_to_update) + " objects...");
integer i; integer i;
for (i = 0; i < llGetListLength(objects_to_update); i++) for (i = 0; i < llGetListLength(objects_to_update); i++)