Difference between revisions of "LlExecCharacterCmd/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
Line 1: Line 1:
{{LSL_Function/ja
{{LSL_Function/ja
|func=llExecCharacterCmd
|func=llExecCharacterCmd
|func_desc=Send a command to the pathing system.
|func_desc=パスファインディングシステムにコマンドを送信します。
|func_footnote=Currently only supports stopping the current pathfinding operation or causing the character to jump.
|func_footnote=現在、現在のパスファインディング操作を停止させるか、キャラクターをジャンプさせるかのみをサポートしています。
|p1_type=integer
|p1_type=integer
|p1_name=command
|p1_name=command
|p1_desc=Command to be sent.
|p1_desc=送信するコマンド。
|p2_type=list
|p2_type=list
|p2_subtype=instructions
|p2_subtype=instructions
|p2_name=options
|p2_name=options
|p2_desc=<code>CHARACTER_CMD_*</code>|p2_hover=CHARACTER_CMD_*
|p2_desc=<code>CHARACTER_CMD_*</code>|p2_hover=CHARACTER_CMD_*
|constants={{LSL_Constants/ExecCharacterCmd}}
|constants={{LSL_Constants/ExecCharacterCmd/ja}}
|caveats=* If another script in the same object issues [[CHARACTER_CMD_STOP]] then pathing in all scripts is cancelled.
|caveats=* 同じオブジェクト内の別のスクリプトが[[CHARACTER_CMD_STOP]]を発行すると、すべてのスクリプトのパスファインディングがキャンセルされます。
|examples=
|examples=
<source lang="lsl2">
<source lang="lsl2">

Latest revision as of 11:54, 22 November 2023

要約

関数: llExecCharacterCmd( integer command, list options );

パスファインディングシステムにコマンドを送信します。

• integer command 送信するコマンド。
• list options CHARACTER_CMD_*

現在、現在のパスファインディング操作を停止させるか、キャラクターをジャンプさせるかのみをサポートしています。

コマンド 説明および必須パラメータ
CHARACTER_CMD_JUMP 0x1 キャラクターをジャンプさせます。

optionリストはheightパラメータで始まる必要があります:[float height]

• float height ジャンプする高さ、0.1mから2.0mまで
CHARACTER_CMD_SMOOTH_STOP 0x2 現在のパスファインディング操作をなめらかに停止します。
CHARACTER_CMD_STOP 0x0 現在のパスファインディング操作を停止します。

警告

  • 同じオブジェクト内の別のスクリプトがCHARACTER_CMD_STOPを発行すると、すべてのスクリプトのパスファインディングがキャンセルされます。
All Issues ~ Search JIRA for related Bugs

サンプル

vector patrol;
 
default
{
    state_entry()
    {
        patrol = llGetPos();
        llCreateCharacter([CHARACTER_MAX_SPEED, 25, CHARACTER_DESIRED_SPEED, 15.0]);
        state awake;
    }
}
 
state awake
{
    state_entry()
    {
        llSay(0, "I am guarding now");
        list points = [patrol + <5,0,0>, patrol - <5,0,0>];
        llPatrolPoints(points, []);
    }
 
    touch_start(integer total_number)
    {
        state sleep;
    }
}
 
state sleep
{
    state_entry()
    {
        llSay(0, "Going to sleep");
        llExecCharacterCmd(CHARACTER_CMD_SMOOTH_STOP, []);
    }
 
    touch_start(integer total_number)
    {
        patrol = llGetPos();
        //Jump to attention!
        llExecCharacterCmd(CHARACTER_CMD_JUMP, [0.5]);
        state awake;
    }
}

特記事項

経緯

Date of Release 31/07/2012

Search JIRA for related Issues

Signature

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