OsGetNumberOfNotecardLines

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added permissions and delay information)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=VeryHigh
 
|threat_level=VeryHigh
 +
|permissions=${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
 +
|delay=0
 
|function_syntax=integer osGetNumberOfNotecardLines(string name)  
 
|function_syntax=integer osGetNumberOfNotecardLines(string name)  
 
|ossl_example=<source lang="lsl">//Example usage:
 
|ossl_example=<source lang="lsl">//Example usage:

Revision as of 18:38, 25 October 2017

integer osGetNumberOfNotecardLines(string name)
This function directly reads how many lines a notecard has if the specified notecard exists within the task inventory, bypassing the dataserver event to reduce code complexity.
Threat Level VeryHigh
Permissions ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//Example usage:
default 
{
    state_entry()
    {
        string notecard = llGetInventoryName(INVENTORY_NOTECARD, 0);
        integer length=osGetNumberOfNotecardLines(notecard);
        llSay(0, "NumberOfNotecardLines is: " + (string) length);
 
    }
}
Personal tools
General
About This Wiki