Difference between revisions of "LlEvade/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
Line 2: Line 2:
|inject-2={{LSL Function/uuid|target|object=*}}
|inject-2={{LSL Function/uuid|target|object=*}}
|func=llEvade
|func=llEvade
|func_desc=Characters will (roughly) try to hide from their pursuers if there is a good hiding spot along their fleeing path. Hiding means no direct line of sight from the head of the character (center of the top of its physics bounding box) to the head of its pursuer and no direct path between the two on the navmesh.|
|func_desc=キャラクターは、逃走経路に良い隠れ場所がある場合、(おおよそ)追跡者から身を隠そうとします。隠れるとは、キャラクターの頭部(物理バウンディングボックスの上部中央)から追跡者の頭部までの直接の視線がなく、両者間にナビメッシュ上での直接のパスがないことを意味します。|
|p1_type=key
|p1_type=key
|p1_name=target
|p1_name=target
|p1_desc= to evade
|p1_desc=避ける対象
|p2_type=list
|p2_type=list
|p2_subtype=instructions
|p2_subtype=instructions
|p2_name=options
|p2_name=options
|p2_desc=No options currently available
|p2_desc=現在は利用可能なオプションはありません
|caveats=*Must use [[llCreateCharacter]] or script will not compile.
|caveats=*[[llCreateCharacter/ja]]を使用しないと、スクリプトはコンパイルされません。
<!--*Vertical positions specified for any vectors should be chosen to be as close as possible to the actual height of the terrain requested. Large difference between the provided vertical position and the actual terrain/object will result in failure of the behavior.-->
<!--*Vertical positions specified for any vectors should be chosen to be as close as possible to the actual height of the terrain requested. Large difference between the provided vertical position and the actual terrain/object will result in failure of the behavior.-->
*If the {{LSLP|target}} is an object, it must be unlinked or be the root prim of a linkset.
*If the {{LSLP|target}} is an object, it must be unlinked or be the root prim of a linkset.

Latest revision as of 11:51, 22 November 2023

要約

関数: llEvade( key target, list options );

キャラクターは、逃走経路に良い隠れ場所がある場合、(おおよそ)追跡者から身を隠そうとします。隠れるとは、キャラクターの頭部(物理バウンディングボックスの上部中央)から追跡者の頭部までの直接の視線がなく、両者間にナビメッシュ上での直接のパスがないことを意味します。

• key target group, avatar or object UUID避ける対象
• list options 現在は利用可能なオプションはありません

警告

  • llCreateCharacter/jaを使用しないと、スクリプトはコンパイルされません。
  • If the target is an object, it must be unlinked or be the root prim of a linkset.
All Issues ~ Search JIRA for related Bugs

サンプル

vector start_position;

default
{
    on_rez(integer start_param)
    {
        llResetScript();
    }

    state_entry()
    {
        llDeleteCharacter();
        llCreateCharacter([CHARACTER_MAX_SPEED, 25, CHARACTER_DESIRED_SPEED, 15.0]);

        start_position = llGetPos();
        llWanderWithin(start_position, <10.0, 10.0, 2.0>, [] );
    }
 
    touch_start(integer num_detected)
    {
        llEvade(llDetectedKey(0), []);
        llSetTimerEvent(20.0);
    }

    timer()
    {
    //  do not keep running away...
        llSetTimerEvent(0.0);

        llWanderWithin(start_position, <10.0, 10.0, 2.0>, [] );
    }
}

特記事項

経緯

Date of Release 31/07/2012

Search JIRA for related Issues

Signature

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