Difference between revisions of "LlGetCreator"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
|caveats
|caveats
|examples=
|examples=
<lsl>
<source lang="lsl2">
default
default
{
{
Line 17: Line 17:
         key creatorThisPrim = llGetCreator();
         key creatorThisPrim = llGetCreator();


    //  PUBLIC_CHANNEL has the integer value 0
         llSay(0, "The creator of this prim has the key '"+(string)creatorThisPrim + "'.");
         llSay(PUBLIC_CHANNEL, "The creator of this prim has the key '"+(string)creatorThisPrim + "'.");
         llSay(0, "My owner has the key '" + (string)owner + "'.");
         llSay(PUBLIC_CHANNEL, "My owner has the key '" + (string)owner + "'.");
     }
     }
}
}
</lsl>
</source>
|constants
|constants
|helpers
|helpers

Latest revision as of 00:46, 22 January 2015

Summary

Function: key llGetCreator( );
0.0 Forced Delay
10.0 Energy

Returns a key for the creator of the prim.

Examples

default
{
    state_entry()
    {
        key owner = llGetOwner();
        key creatorThisPrim = llGetCreator();

        llSay(0, "The creator of this prim has the key '"+(string)creatorThisPrim + "'.");
        llSay(0, "My owner has the key '" + (string)owner + "'.");
    }
}

See Also

Functions

•  llGetInventoryCreator
•  llGetOwner

Deep Notes

Signature

function key llGetCreator();

Haiku

An atheist says
There is no God and yet I
Can always find one.