Don't click here unless you want to be banned.
LSL Wiki :
llGetNumberOfPrims
HomePage
::
PageIndex
::
RecentChanges
::
RecentlyCommented
::
UserSettings
:: You are crawling22.us.archive.org
**##[[integer]] llGetNumberOfPrims()##** [[return Returns]] the number of [[prim prims]] in (and [[agentandavatar avatars]] seated on) the [[object]] the [[script]] is in. Note: this [[function]] works regardless of whether the script is in the [[parent]] or a [[child]] prim in a [[link linked set]]. %%(lsl) //Returns the number of agents on the object integer GetNumberOfAgents() {//ignores avatars. integer a = llGetNumberOfPrims(); integer b = a; if(1 < a) while(llGetAgentSize(llGetLinkKey(a))) --a; return b - a; } //Returns the number of prims in the object integer GetNumberOfPrims() {//ignores avatars. integer a = llGetNumberOfPrims(); if(1 < a) while(llGetAgentSize(llGetLinkKey(a))) --a; return a; } %% ---- [[functions Functions]] | [[object Object]] | [[prim Prim]] | [[link Link]]
Valid XHTML 1.0 Transitional
::
Valid CSS
:: Powered by
WakkaWiki 0.1.2