Table of Contents

Start Functions Events Constants Types Language Articles

Function: llSetAlpha

llSetAlpha(float alpha, integer face)

Sets the opacity (also called alpha) of a face or all faces of the current prim.

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.

Notes

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, 2);  // Will make face 2 of this prim go transparent
    }
}

See also