Difference between revisions of "PRIM PHANTOM"

From Second Life Wiki
Jump to: navigation, search
m
m (<lsl> tag to <source>)
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
 
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
 
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
 
*NOTE: This sets the entire object (linkset) when used in either function.
 
*NOTE: This sets the entire object (linkset) when used in either function.
|i1_type=integer|i1_name=boolean
+
|i1_type=integer|i1_subtype=boolean|i1_name=boolean
 
|toc=llSetPrimitiveParams
 
|toc=llSetPrimitiveParams
 
}}
 
}}
Line 22: Line 22:
 
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
 
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
 
|text
 
|text
|r1_type=integer|r1_name=boolean
+
|r1_type=integer|r1_subtype=boolean|r1_name=boolean
 
|toc=llGetPrimitiveParams
 
|toc=llGetPrimitiveParams
 
}}
 
}}
|examples=<lsl>default
+
|examples=<source lang="lsl2">default
 
{
 
{
 
     state_entry()
 
     state_entry()
Line 43: Line 43:
 
         }
 
         }
 
     }
 
     }
}</lsl>
+
}</source>
 
|constants=
 
|constants=
 
{{LSL DefineRow||[[STATUS_PHANTOM]]|}}
 
{{LSL DefineRow||[[STATUS_PHANTOM]]|}}

Latest revision as of 16:47, 23 January 2015

Description

Constant: integer PRIM_PHANTOM = 5;

The integer constant PRIM_PHANTOM has the value 5

Used to get or set the object's phantom status.

llSetPrimitiveParams

[ PRIM_PHANTOM, integer boolean ]
• integer boolean TRUE enables, FALSE disables

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

  • NOTE: This sets the entire object (linkset) when used in either function.

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_PHANTOM ]);

Returns the list [ integer boolean ]

• integer boolean TRUE enables, FALSE disables

Related Articles

Constants

•  STATUS_PHANTOM

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams
•  llSetStatus
•  llGetStatus

Events

•  changed

Examples

default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_PHANTOM, TRUE]); // makes the object phantom...
 
        integer isPhantom = llList2Integer(llGetPrimitiveParams([PRIM_PHANTOM]), 0);
 
        if( isPhantom == 1 )
        {
            llSetText("Object is Phantom", <1, 1, 1>, 1.0);
        }
 
        else
        {
            llSetText("Object is Solid", <1, 1, 1>, 1.0);
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_PHANTOM = 5;