Difference between revisions of "LlIsFriend/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
Line 8: Line 8:
|p1_type=key|p1_name=agent_id
|p1_type=key|p1_name=agent_id
|func_desc=
|func_desc=
|return_text=that is [[TRUE]] if {{LSLP|agent_id}} and the owner of the [[prim]] the [[script]] is in are friends, otherwise [[FALSE]].
|return_text={{LSLP|agent_id}}[[prim]]の所有者が友達であれば[[TRUE]]、それ以外の場合は[[FALSE]]
|func_footnote
|func_footnote
|spec=
|spec=


* If the prim is owned by a group this function behaves identically to [[llSameGroup]]
* もしprimがグループによって所有されている場合、この関数は[[llSameGroup]]とまったく同じように動作します。
* This function will return [[FALSE]] under the following edge cases:
* この関数は以下の極端なケースでは[[FALSE]]を返します:
** If neither the owner, nor the target agent are in the region.
** 所有者も対象のエージェントもリージョンにいない場合。
** If the agent_id does not specify an agent.
** agent_idがエージェントを指定していない場合。


|caveats=
|caveats=
* You are not your own friend.
* あなたは自分自身の友達ではありません。


|constants
|constants

Latest revision as of 16:37, 22 November 2023

要約

関数: integer llIsFriend( key agent_id );

agent_idprimの所有者が友達であればTRUE、それ以外の場合はFALSE。を integer で返します。

• key agent_id

仕様

  • もしprimがグループによって所有されている場合、この関数はllSameGroupとまったく同じように動作します。
  • この関数は以下の極端なケースではFALSEを返します:
    • 所有者も対象のエージェントもリージョンにいない場合。
    • agent_idがエージェントを指定していない場合。

警告

  • あなたは自分自身の友達ではありません。
All Issues ~ Search JIRA for related Bugs

サンプル

default
{
    state_entry()
    {
        llSensorRepeat("", NULL_KEY, AGENT, 95, PI, 10);
    }

    sensor(integer count)
    {
        integer index;
        for (index = 0; index < count; ++index)
        {
            string is_is_not = " is NOT ";
            if (llIsFriend(llDetectedKey(index)))
            {
                is_is_not = " is ";
            }
            llSay(0, llDetectedName(index) + is_is_not + "a friend.");
        }
    }
}

関連項目

関数

•  llDetectedGroup/ja
•  llSameGroup/ja

特記事項

Search JIRA for related Issues

Signature

function integer llIsFriend( key agent_id );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。