Difference between revisions of "LlRezObjectWithParams/ja"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function/ja |inject-2= {{LSL_Function/inventory/ja|inventory|uuid=false|type=object}} {{LSL_Function/position/ja|pos|region=*}} |func_id=|func_sleep=0.1|func_energy=200....")
 
m
Line 43: Line 43:
|inventory
|inventory
|negative_index
|negative_index
|cat1=Rez/ja
|cat1=Rez
|cat2=Object/ja
|cat2=Object
|cat3=Inventory/ja
|cat3=Inventory
|cat4
|cat4
}}
}}

Revision as of 12:58, 2 November 2023

要約

関数: key llRezObjectWithParams( string inventory, list params );

Instantiate inventory object at pos with an initial set of parameters specified in params.
which will be the key of the object when it is successfully rezzed in the world.を key で返します。

• string inventory プリムの インベントリ の中にあるobject
• list params

仕様

パラメータ

パラメータ 整数の値 設定する値 説明
REZ_PARAM 0 integer param リージョンにリザされるオブジェクトのon_rez(integer) イベントに渡されるスタート パラメータ。
REZ_FLAGS 1 integer flags オブジェクトがワールドに作成されるときに適用されるフラグ。

フラグ

パラメータ 整数の値 説明
REZ_FLAG_TEMP 0x0001 オブジェクトは一時的にリザされます。
REZ_FLAG_PHYSICAL 0x0002 オブジェクトは物理的にリザされます。
REZ_FLAG_PHANTOM 0x0004 オブジェクトはファントムとしてリザされます。
REZ_FLAG_DIE_ON_COLLIDE 0x0008 オブジェクトは最初の衝突後に消滅します。
REZ_FLAG_DIE_ON_NOENTRY 0x0010 オブジェクトは進入できないパーセルに進入しようとした場合に消滅します。
REZ_FLAG_NO_COLLIDE_OWNER 0x0020 オブジェクトは所有者と衝突しても衝突イベントをトリガーしません。
REZ_FLAG_NO_COLLIDE_FAMILY 0x0040 オブジェクトは同じリザーによってリザされた他のオブジェクトと衝突しても衝突イベントをトリガーしません。
REZ_FLAG_BLOCK_GRAB_OBJECT 0x0080 このオブジェクトのつかみ取りが無効になっています。

† 衝突の無効化は衝突イベントとダメージのみを無効にします。オブジェクトは依然として物理的な衝突を引き起こし、他のオブジェクトを押し動かす可能性があります。

REZ_POS 2 vector pos, integer relative, integer at_root 新しいオブジェクトをワールドにリザする位置。relative が FALSE の場合、位置はリージョン座標です。relative が TRUE の場合、位置はリジング オブジェクトに対して相対的になります。

at_root が FALSE の場合、オブジェクトのcenterは pos で指定された位置になります(llRezObject)。at_root を TRUE に設定してルート プリムの位置を設定します(llRezAtRoot).

REZ_ROT 3 rotation rot, integer relative オブジェクトに適用する初期回転。relative が TRUE の場合、回転はリジング オブジェクトに対して相対的であり、それ以外の場合は絶対的です。
REZ_VEL 4 vector velocity, integer local, integer inherit オブジェクトに適用する初期速度。local が TRUE の場合、速度はローカル オブジェクト座標フレーム内で、それ以外の場合はワールド座標内です。

inherit が TRUE の場合、オブジェクトはリザーの速度も引き継ぎます。

REZ_ACCEL 5 vector force, integer local オブジェクトに適用する一定の力。local が TRUE の場合、力ベクトルはローカル座標で指定されます。
REZ_OMEGA 7 vector axis, integer local, float spin, float gain 指定された軸を中心にオブジェクトを回転させます。local が TRUE の場合、その軸はローカル座標であり、それ以外の場合はグローバルです。
REZ_DAMAGE 8 float damage このオブジェクトとの衝突時にエージェントに適用されるダメージ量。
REZ_SOUND 9 string sound, float volume, integer loop このオブジェクトにアタッチするサウンド。指定された音量で再生されます。

loop が TRUE の場合、オブジェクトの寿命中、サウンドは連続的にループします。 sound パラメータは、リザーのインベントリ内のサウンド ファイルまたはサウンド アセットのUUIDのいずれかです。

REZ_SOUND_COLLIDE 10 string sound, float volume 他のオブジェクト、地面、またはアバターとの衝突時に再生されるサウンド。

sound パラメータは、リザーのインベントリ内のサウンド ファイルまたはサウンド アセットのUUIDのいずれかです。

REZ_LOCK_AXES 11 vector locks オブジェクトが特定の軸で回転しないようにします。ベクトルの座標をゼロ以外に設定すると、その軸でオブジェクトが回転しなくなります。


たとえば
REZ_LOCK_AXES、<1.0、1.0、0.0>
は、オブジェクトがZ軸の周りだけで回転できるようにします。

警告

  • この関数は 0.1 秒間、スクリプトを停止します。
  • inventory がプリムの中で見つからない場合、またはこれがobjectでない場合、エラーが DEBUG_CHANNEL 上で叫ばれます。
  • Silently fails to rez inventory if REZ_POS is too far from the geometric center of the object trying to rez inventory.
  • When scripting attachments meant to rez objects, remember that when used in the root of an (attached) attachment llGetPos doesn't return the position of the attachment but instead returns the position of the avatar's bounding box geometric center. Read llGetPos and llParticleSystem Caveats for more information.
  • If the object is unattached and the owner of the object does not have copy permission on inventory, the object will no longer be present in inventory after it is rezzed (so another attempt to rez (the same object) will fail); if the owner does have copy permission, then a copy is rezzed, and the original inventory remains in inventory.
  • If the object is attached and the owner of the object does not have copy permission on inventory, an error is shouted on DEBUG_CHANNEL: "Cannot rez no copy objects from an attached object."
  • Silently fails if you don't have offline building rights on the land. To have the right, your objects needs to either:
    • Be on land you own yourself.
    • Be on land where anyone is allowed to build, e.g. a sandbox.
    • Be deeded to the group that owns the land.
    • Be set to the same group that owns the land and the land have the parcel flag 'allow group to build' set.
    • The group role "Always allow 'Create Objects'" will only work to override this when you are online, in the region, or have a child agent in the region. See SVC-3145 in the Issues subsection of Deep Notes for more information.
  • See object_rez for examples on how to establish communications between the rezzing object and the new prim.
All Issues ~ Search JIRA for related Bugs

サンプル

関連項目

定数

•  PRIM_TEMP_ON_REZ/ja

イベント

•  object_rez/ja triggered when this object rezzes an object from inventory

関数

•  llRezAtRoot/ja Rezzes the object at the requested position
•  llRezObject/ja Rezzes the object at the requested position
•  llGetStartParameter/ja
•  llGodLikeRezObject/ja
•  LlGetParcelFlags/ja#Examples Test if the parcel allows this script to rez

特記事項

Search JIRA for related Issues

Signature

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