add listen handle
This commit is contained in:
parent
e03807caa7
commit
001bfa1ecd
1 changed files with 4 additions and 1 deletions
|
@ -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++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue