Difference between revisions of "LlGetCreator"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(17 intermediate revisions by 10 users not shown)
Line 2: Line 2:
|func=llGetCreator
|func=llGetCreator
|sort=GetCreator
|sort=GetCreator
|func_id=272
|func_id=272|func_sleep=0.0|func_energy=10.0
|func_sleep=0.0
|func_energy=10.0
|func_footnote
|func_footnote
|p1_type|p1_name|p1_desc
|p2_type|p2_name|p2_desc
|p3_type|p3_name|p3_desc
|p4_type|p4_name|p4_desc
|p5_type|p5_name|p5_desc
|p6_type|p6_name|p6_desc
|p7_type|p7_name|p7_desc
|p8_type|p8_name|p8_desc
|p9_type|p9_name|p9_desc
|p10_type|p10_name|p10_desc
|p11_type|p11_name|p11_desc
|p12_type|p12_name|p12_desc
|return_type=key
|return_type=key
|return_text=for the creator of the object.
|return_text=for the creator of the prim.
|spec
|spec
|caveats
|caveats
|examples=
|examples=
<pre>
<source lang="lsl2">
default
default
{
{
     state_entry()
     state_entry()
     {
     {
         llSay(0,"My creator is: "+(string)llGetCreator() );
        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 + "'.");
     }
     }
}
}
</pre>
</source>
|constants
|constants
|helpers
|helpers
|also_functions
|also_functions=
{{LSL DefineRow||[[llGetInventoryCreator]]|}}
{{LSL DefineRow||[[llGetOwner]]|}}
|also_events
|also_events
|also_tests
|also_tests
Line 41: Line 33:
|permission
|permission
|negative_index
|negative_index
|cat1
|cat1=Prim
|cat2
|cat2=Creator
|cat3
|cat3=Key
|cat4
|cat4
|haiku={{Haiku|An atheist says|There is no God and yet I|Can always find one.}}
}}
}}

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.