Difference between revisions of "Template:Darwin's Scripts"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 7: Line 7:
<div style="padding: 0.5em">
<div style="padding: 0.5em">
The script below will give the width of the screen in meters by touching anywhere on the visible face, given that the prim is a box with zero rotation and attached at one of the corner HUD attachment points.
The script below will give the width of the screen in meters by touching anywhere on the visible face, given that the prim is a box with zero rotation and attached at one of the corner HUD attachment points.
{{Mono|default
<lsl>default
{
{
     touch_start(integer total_number)
     touch_start(integer total_number)
Line 20: Line 20:
         llOwnerSay((string)screen_width);
         llOwnerSay((string)screen_width);
     }
     }
}}}
}</lsl>
</div></div>
</div></div>
  | Script not found: {{{1}}}
  | Script not found: {{{1}}}

Revision as of 11:54, 26 November 2008


Returns lsl scripts

Contents:

  • find screen width