Difference between revisions of "LlGetMaxScaleFactor"

From Second Life Wiki
Jump to navigation Jump to search
Line 24: Line 24:
{{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 15:10, 6 January 2014

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

<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

Signature

function float llGetMaxScaleFactor();