OsMakeNotecard

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Added permissions and delay information)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=High
 
|threat_level=High
 +
|permissions=${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
 +
|delay=0
 
|function_syntax=void osMakeNotecard(string notecardName, list contents)
 
|function_syntax=void osMakeNotecard(string notecardName, list contents)
 +
 +
void osMakeNotecard(string notecardName, string contents)
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
 
//
 
//
Line 26: Line 30:
 
}
 
}
 
</source>
 
</source>
|description=Creates a notecard with text in the prim that contains the script.
+
|description=Creates a notecard with text in the prim that contains the script. Contents can be either a list or a string.
 
|
 
|
 
}}
 
}}

Revision as of 18:39, 25 October 2017

void osMakeNotecard(string notecardName, list contents)

void osMakeNotecard(string notecardName, string contents)

Creates a notecard with text in the prim that contains the script. Contents can be either a list or a string.
Threat Level High
Permissions ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
//osMakeNotecard example
//By Tom Earth
 
default
{
    touch_start(integer n)
    {
        key id = llDetectedKey(0);
        string name = llKey2Name(id);
        list contents; //The variable we are going to use for the contents of the notecard.
        contents += ["Name: "+name+"\n"];
        contents += ["Key: "+(string)id+"\n"];
        contents += ["Pos: "+(string)llDetectedPos(0)+"\n"];
        contents += ["Rotation: "+(string)llDetectedRot(0)+"\n"];
 
        osMakeNotecard(name,contents); //Makes the notecard.
 
        llGiveInventory(id,name); //Gives the notecard to the person.
        llRemoveInventory(name);
    }
}
Personal tools
General
About This Wiki