Unofficial LSL Reference

[[functions:llsetalpha]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

This is an old revision of the document!


Function: llSetAlpha

null llSetAlpha(float alpha, integer face)

Parameters

alpha

A float value between 0.0 and 1.0 being the degree of opacity. 1.0 being fully opaque.

face

An integer value defining the face of the prim to be affected. ALL_SIDES affects all faces.

Result

No result is returned

Notes

This function ONLY affects the prim the script is in. To change the alpha on another prim, use llSetLinkAlpha.

Short examples

llSetAlpha(0.5, ALL_SIDES); // will set all faces of the current prim to semi-opaque

Complete examples

llSetAlpha-example.lsl
default
{
    state_entry()
    {
        llSetAlpha(0.0, 1);  // Will make face 1 of this prim go transparent
    }
}

See also