LlGetNumberOfPrims/ja
From Second Life Wiki
関数: integer llGetNumberOfPrims( );
例
default { state_entry() { llOwnerSay((string) llGetLinkNumber()); llOwnerSay((string) llGetNumberOfPrims()); } }
部分的な利用
//Returns the number of agents on the object integer GetNumberOfAgents() {//count avatars integer a = llGetNumberOfPrims(); integer b = a; while(llGetAgentSize(llGetLinkKey(a))) --a; return b - a; } //Returns the number of prims in the object integer GetNumberOfPrims() {//ignores avatars integer a = llGetNumberOfPrims(); while(llGetAgentSize(llGetLinkKey(a))) --a; return a; }
関連項目
関数
| • | llGetObjectPrimCount | – | いずれかのオブジェクト内のプリム数を返します。 | |
| • | llGetLinkNumber | – | スクリプトが入っているプリムのリンクナンバーを返します。 |

