User:Darwin Recreant
Revision as of 10:55, 26 November 2008 by Darwin Recreant (talk | contribs)
Profile
Born:
20th March 2007
About:
Master Scipter and owner of the College of Scripting Music and Science
Key:
a8f0b56e-e68e-4113-acec-71c57c98cc5b
Achievements
- Contributed to the success of the College
- Creator of the Anti-Griefer HUD
- Creator of the DRUID Holodeck
- Non-stop scripting development
- Teleporters
- Vendors
- Anti-Griefing tools
- Scripting tools (functions)
- Useful HUD's of all sorts
- Helper to dozens of newbie/intermediate scripters
My Wiki Articles
- llSetFaceText
- College of Scripting Music and Science
- College of Scripting Music and Science/Group Guidelines
- Template:Darwin's Scripts
- FindScreenWidth
My Jira Reports
- Momentary inaccuracy with llSetPos in linked objects
- New function: llGetParcelAgents
- New Feature: Prim Animations - Less laggy, smoother, avatar like, animations on prims
- MONO: Script crashes sim
My Scripts
Find Screen Width
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. <lsl>default {
touch_start(integer total_number) { vector scale = llGetScale(); vector off_point = llGetLocalPos(); vector face_pos = llDetectedTouchST(0); vector screen_pos = llDetectedTouchPos(0); float screen_width = ((face_pos.x-.5)*scale.y-off_point.y+screen_pos.y)*2; llOwnerSay((string)screen_width); }}</lsl>