About

Any amount of message pumps can be used, provided that they are within the flood limits of llRezObject. Each script is polled in round-robin fashion and distinguished by the check:

if(num & 0xFFFF != 1) return;

which indicates whether the message was meant for this pump.

Code

message_pump.lsl
///////////////////////////////////////////////////////////////////////////
//  Copyright (C) Wizardry and Steamworks 2014 - License: GNU GPLv3      //
//  Please see: http://www.gnu.org/licenses/gpl.html for legal details,  //
//  rights of fair usage, the disclaimer and warranty conditions.        //
///////////////////////////////////////////////////////////////////////////
 
default {
    link_message(integer sender, integer num, string str, key id) {
        if(num & 0xFFFF != 1) return;
        integer channel = num >> 16;
        llRezObject("o",
            (vector)str,
             ZERO_VECTOR,
             ZERO_ROTATION,
        channel);
        llWhisper(channel, id);
    }
}

secondlife/region_scanner/message_pump.txt ยท Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.