Difference between revisions of "LlEjectFromLand"

From Second Life Wiki
Jump to: navigation, search
Line 3: Line 3:
 
|func=llEjectFromLand|p1_type=key|p1_name=pest
 
|func=llEjectFromLand|p1_type=key|p1_name=pest
 
|func_footnote=If '''name''', '''id''', and/or '''type''' are empty or 0, they are ignored.<br/>If '''id''' is an invalid key or [[NULL_KEY]] it is treated as empty.
 
|func_footnote=If '''name''', '''id''', and/or '''type''' are empty or 0, they are ignored.<br/>If '''id''' is an invalid key or [[NULL_KEY]] it is treated as empty.
|func_desc=Ejects '''pest''' from land that you own.
+
|func_desc=
 +
 
 
Performs a single scan for '''name''' and '''id''' with '''type''' within '''range''' meters and '''arc''' radians of forward vector
 
Performs a single scan for '''name''' and '''id''' with '''type''' within '''range''' meters and '''arc''' radians of forward vector
 
|return_text
 
|return_text

Revision as of 01:04, 16 July 2007

Summary

Function: llEjectFromLand( key pest );

Performs a single scan for name and id with type within range meters and arc radians of forward vector

• key pest

If name, id, and/or type are empty or 0, they are ignored.
If id is an invalid key or NULL_KEY it is treated as empty.

Examples

            // Here a script done by shenanigan oh//

//It's a easy script that I came up with. When I worked for a carnage I put this script in a computer that was atteched to me. The carnage it self was a pvp sims so it was alot easyer and fast to eject some this way then running after them and clicking on them. The way this work is by trying eject and half type plays name. Example ^ /1 eject shenan

//Warning if you type someone name in short be carful of other plays with same name!//
string msg;
string name;
default
{
    on_rez(integer n)
    {
        llResetScript();
    }
    
    state_entry()
    {
        llListen(1,"",llGetOwner(),"");
        llListen(0,"",llGetOwner(),"");
    }
    listen(integer n, string m, key k, string msg)
     {
         
         if (llGetSubString(msg,0,4) == "eject")
         {
            
             name = llToLower(llGetSubString(msg,6,llStringLength(msg)));
            llSensor("",NULL_KEY,AGENT,96,PI);
        }
        
    }
    
    sensor(integer n)
    {
        integer i;
        for (i=0;i<n;i++)
        {
            
            if (llSubStringIndex(llToLower(llDetectedName(i)),name) != -1)
              {
            
            llOwnerSay("ejecting " + name);
                llEjectFromLand(llDetectedKey(i));
        }
    }
}
    no_sensor() {
    llOwnerSay("Avatar not found.");
    }
} 

Deep Notes

Search JIRA for related Issues

Signature

function void llEjectFromLand( key pest );