# PRIM_PHANTOM

*LSL constant*

```lsl
integer PRIM_PHANTOM = 5;
```

Prim parameter [PRIM_PHANTOM, integer boolean] to get or set whether phantom status is enabled.

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to get or set the object's [phantom](/constants/STATUS_PHANTOM/) [status](https://wiki.secondlife.com/wiki/Category:LSL_Status).

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={10-19}
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);
        }
    }
}
```

</details>

## See also

### Constants

- [STATUS_PHANTOM](/constants/STATUS_PHANTOM/)

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llSetStatus](/functions/llSetStatus/)
- [llGetStatus](/functions/llGetStatus/)

### Events

- [changed](/events/changed/)

---

*Source: [PRIM PHANTOM](https://wiki.secondlife.com/wiki/PRIM_PHANTOM) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM PHANTOM (revision 1217351, 2024-09-28) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_PHANTOM/
