Difference between revisions of "LlGetMinScaleFactor"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function|mode=request |inject-2= |func_id=|func_sleep=0.0|func_energy= |func=llGetMinScaleFactor|sort=GetMinScaleFactor |return_type=float |func_desc |return_text=that is t…")
 
Line 1: Line 1:
{{LSL_Function|mode=request
{{LSL_Function
|inject-2=
|inject-2=
|func_id=|func_sleep=0.0|func_energy=
|func_id=|func_sleep=0.0|func_energy=10.0
|func=llGetMinScaleFactor|sort=GetMinScaleFactor
|func=llGetMinScaleFactor|sort=GetMinScaleFactor
|return_type=float
|return_type=float
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples
|examples=
<lsl>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.");
    }
}</lsl>
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||[[llScaleByFactor]]|}}
{{LSL DefineRow||[[llScaleByFactor]]|}}
{{LSL DefineRow||[[llGetMaxScaleFactor]]|}}
{{LSL DefineRow||[[llGetMaxScaleFactor]]|}}
{{LSL DefineRow||[[llGetMinScaleFactor]]|}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 16:11, 6 January 2014

Summary

Function: float llGetMinScaleFactor( );

Returns a float that is the smallest scaling factor that can be used with llScaleByFactor to resize the object.

Examples

<lsl>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.");
   }
}</lsl>

See Also

Deep Notes

History

Search JIRA for related Issues

Signature

function float llGetMinScaleFactor();