OsGetNumberOfNotecardLines

From OpenSimulator

Revision as of 15:09, 12 June 2011 by Fritigern (Talk | contribs)

Jump to: navigation, search
osGetNumberOfNotecardLines(string name)
No descriptions provided
Threat Level VeryHigh
Permissions No permissions specified
Delay No function delay specified
Example(s)
//Example usage:
default {
    state_entry() {
        integer i;
        string notecard = llGetInventoryName(INVENTORY_NOTECARD, 0);
        for(i=1; i<=osGetNumberOfNotecardLines(notecard); i++) {
            llSay(0, osGetNotecardLine(notecard, i));
        }
    }
}
Notes
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.
Personal tools
General
About This Wiki