Difference between revisions of "LlGetMaxScaleFactor"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LSL_Function
{{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=llGetMaxScaleFactor|sort=GetMaxScaleFactor
|func=llGetMaxScaleFactor|sort=GetMaxScaleFactor
|return_type=float
|return_type=float
|func_desc
|func_desc
|return_text=that is the largest scaling factor that can be used with [[llScaleByFactor]] to resize the object.  This maximum is determined by the [[Linkability_Rules]] and [[Limits#Building|prim scale limits]].
|return_text=that is the largest scaling factor that can be used with [[llScaleByFactor]] to resize the object.  This maximum is determined by the [[Linkability Rules]] and [[Limits#Building|prim scale limits]].
|spec
|spec
|caveats
|caveats
|constants
|constants
|examples=
|examples=
<lsl>default
<source lang="lsl2">default
{  
{  
     touch_start(integer total_number)
     touch_start(integer total_number)
Line 19: Line 19:
             + " when calling llScaleByFactor() on this linkset.");
             + " when calling llScaleByFactor() on this linkset.");
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_functions=
|also_functions=

Latest revision as of 02:13, 22 January 2015

Summary

Function: float llGetMaxScaleFactor( );

Returns a float that is the largest scaling factor that can be used with llScaleByFactor to resize the object. This maximum is determined by the Linkability Rules and 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

Search JIRA for related Issues

Signature

function float llGetMaxScaleFactor();