“LlEjectFromLand”的版本间的差异

来自人工智能助力教育知识百科
跳转至: 导航搜索
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llEjectFromLand( key avatar ); |参数= 参数: key avat…”)
 
Kjf讨论 | 贡献
 
(未显示另一用户的1个中间版本)
第4行: 第4行:
 
{{函数详情
 
{{函数详情
 
|函数名 = Function: llEjectFromLand( key avatar );
 
|函数名 = Function: llEjectFromLand( key avatar );
|参数= 参数: key avatar – avatar UUID that is in the same region
+
|参数= 参数: key avatar – 位于同一区域的avatar UUID
|返回值= 返回值:Ejects avatar from the parcel.
+
|返回值= 返回值:从包裹里弹出头像。
  
 +
|注意事项= 一般来说,对象所有者也必须是土地所有者,但有一个例外是土地转让给一个组,组成员具有“在地块上驱逐和冻结居民”的能力。有关详细信息,请参见[[#Ownership Limitations]]。
  
|注意事项= Generally, the object owner must also be the land owner but there is an exception for land deeded to a group for group members with the "Eject and freeze Residents on parcels" ability. See #Ownership Limitations for details.
+
  Ownership Limitations
<pre>
+
  如果对象下的土地属于个人所有,则脚本必须属于同一个人。
Ownership Limitations
+
  如果该对象下的土地被分割成一组,则该对象将需要满足下列条件之一:
If the land under the object is owned by an individual, the script must be owned by the same individual.
+
   该对象被绑定到同一个组。
 
+
   对象所有者必须有“驱逐和冻结包裹上的居民”的能力,并连接到sim
If the land under the object is deeded to a group the object will need to satisfy one of the following:  
 
 
 
   The object is deeded to the same group.
 
 
 
   The object owner must have "Eject and freeze Residents on parcels" ability in the group and be connected to the sim
 
</pre>
 
 
 
 
|示例=
 
|示例=
 
示例1
 
示例1

2021年8月17日 (二) 09:34的最新版本

Template:Needs Translation/


函数名
Function: llEjectFromLand( key avatar );
参数: key avatar – 位于同一区域的avatar UUID
返回值:从包裹里弹出头像。
注意事项
一般来说,对象所有者也必须是土地所有者,但有一个例外是土地转让给一个组,组成员具有“在地块上驱逐和冻结居民”的能力。有关详细信息,请参见#Ownership Limitations
 Ownership Limitations
 如果对象下的土地属于个人所有,则脚本必须属于同一个人。
 如果该对象下的土地被分割成一组,则该对象将需要满足下列条件之一:
 该对象被绑定到同一个组。
 对象所有者必须有“驱逐和冻结包裹上的居民”的能力,并连接到sim
示例
示例1
// 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
//attached to me. The carnage it self was a pvp sims so it was alot easier 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 careful 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, 5) == "eject ")
        {
            name = llToLower(llStringTrim(llDeleteSubString(msg, 0, 5), STRING_TRIM));
            llSensor("", "", AGENT, 96, PI);
        }
    }
 
    sensor(integer n)
    {
        integer i = 0;
        for (;i<n;++i)
        {
            if (llOverMyLand(llDetectedKey(i)))
            {
                if (~llSubStringIndex(llToLower(llDetectedName(i)), name))
                {
                    llOwnerSay("ejecting " + llDetectedName(i));
                    llEjectFromLand(llDetectedKey(i));
                }
            }
        }
    }
    no_sensor()
    {
        llOwnerSay("Avatar not found.");
    }
}
相关函数
相关事件