Difference between revisions of "LlUnSit/ja"
< LlUnSit
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m (カテゴリ変更) |
Mako Nozaki (talk | contribs) m (Undo revision 849212 by Mako Nozaki (Talk)) |
||
Line 50: | Line 50: | ||
|permission | |permission | ||
|negative_index | |negative_index | ||
|cat1=Parcel | |cat1=Parcel | ||
|cat2=Sit | |cat2=Sit | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 02:57, 12 April 2010
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
サンプル
<lsl>//Unsit on Sit, requires a sit target default {
state_entry() { llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); //needed for llAvatarOnSitTarget to work. The vectors components must not all be set to 0. } changed(integer change) //event changed { if (change & CHANGED_LINK) //event changed and it has something to do with linking or avatar sitting { key user = llAvatarOnSitTarget(); if (user) //the changed event is an avatar sitting llUnSit(user); //unsit the avatar on the sit target } }
}</lsl> <lsl>//Unsit on Sit, does not use a sit target default {
changed(integer change) //event changed { if (change & CHANGED_LINK) //event changed and it has something to do with linking or avatar sitting { integer link = llGetNumberOfPrims(); key id; while(llGetAgentSize(id = llGetLinkKey(link--))) llUnSit(id); } }}</lsl>
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。