llGetMinScaleFactor

From Second Life Wiki
Revision as of 01:14, 22 January 2015 by ObviousAltIsObvious Resident (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

Function: float llGetMinScaleFactor( );
0.0 Forced Delay
10.0 Energy

Returns a float that is the smallest scaling factor that can be used with llScaleByFactor to resize the object. This minimum is determined by the prim scale limits.

Examples

default
{ 
    touch_start(integer total_number)
    {
        float min_factor = llGetMinScaleFactor();
        float max_factor = llGetMaxScaleFactor();
        llSay(0, "Choose a value between " + (string)min_factor + " and " + (string)max_factor
            + " when calling llScaleByFactor() on this linkset.");
    }
}

See Also

Deep Notes

History

Signature

function float llGetMinScaleFactor();