my note 1
◎llToLower
string llToLower(string src) (→llToUpper)
srcを全て小文字にする
◎llAvatorOnSitTarget
アバターのキーの取得。いない時はNULL_KEY。
llSitTargetを使用しているときに働く。
◎changed
changed(integer change)
changeと取得したい定数を&演算(==よりも)する。
◎llGetAgentSize
アバターの身長がわかる。
◎llRezObject
llRezObject(string inventory, vector pos, vector vel, rotation rot, integer param)
The param value will be available to a script within the newly created object in the on_rez event or through the llGetStartParameter function.
llRezAtRoot(string inventory, vector pos, vector vel, rotation rot, integer param)
◎llSetTextureAnim
startは左から右へ、上から下へ、0から始まる。
lengthの値0は全てと言うこと。
◎llSetStatus
○llSetStatus(STATUS_PHANTOM,TRUE);
If value is TRUE, object doesn’t collide with other objects (is phantom).
○llSetStatus( STATUS_DIE_AT_EDGE, TRUE);
If value is TRUE, objects that reach the edge of the world just die rather than returning to the owner’s inventory.
◎llMakeFountain
Has been removed from LSL with patch 1.16.x. See llParticleSystem now.
◎llSetBuoyancy(1.0)
Sets a physical object’s buoyancy.
1.0 は無重力状態
1.0 以上だと上昇していく
0から1.0 ゆっくり下降
0に近づくほど通常の状態に
◎llCollisionSound
◎llMoveToTarget(vector target, float tau)
◎on_rez(integer start_param)
When rezzed by an agent, start_param is always 0.
◎collision_start(integer num_detected)
This event is raised when another object or avatar starts colliding with the object the script is attached to.
◎land_collision_start(vector pos)
This event is raised when the object begins to collide with the ground. pos contains the position (in region coordinates) where the collision occured.
◎llMessageLinked
llMessageLinked(integer linknum, integer num, string str, key id)
num,str,idをlinknumに送る。
<linknumって>
LINK_ROOT・・・ルートプリム(1)
LINK_SET・・・オブジェクト内の全プリム(-1)
LINK_ALL_OTHERS・・・このスクリプトが入ってるプリム以外の全プリム(-2)
LINK_ALL_CHILDREN・・・オブジェクト内の子プリム全部(-3)
LINK_THIS・・・このスクリプトが入ってるプリム(-4)
オブジェクトが1プリムだけで作られてる時はlinknumは0になる。2プリム以上だったらルートは1に子プリムは2から始まる。
◎link_message
link_message(integer sender_num, integer num, string str, key id)
sender_numはメッセージを送って来たプリムのnum
num,str,idはllMessageLinkedが送って来た任意の値になる
◎llSetTexture
llSetTexture(string texture, integer side)
プリム内に入ってるテクスチャの名前かテクスチャのkey
If you need to set the texture of a different prim in your linkset, you’ll need to use a separate script in that prim and communicate between the two via llMessageLinked.
じゃあ、テクスチャはどうなんだろ〜。
◎UUID
◎llGetSubString
string llGetSubString(string src, integer start, integer end)
startからendまでの文字を抜き出す。0から数える。−(negative)の場合は後ろから。
◎llEuler2Rot
例)
vector eul =<あ、い、う>; //45 degrees around the z-axis, in Euler form
eul *= DEG_TO_RAD; //convert to radians rotation
rotation quat = llEuler2Rot( eul ); //convert to quaternion
llSetRot( quat ); //rotate the object
だから rotation quat = llEuler2Rot(<あ、い、う> *DEG_TO_RAD);
<>の数値が消えてしまうのでこの部分だけ全角で書いた。
Trackback this post | Subscribe to the comments via RSS Feed