Difference between revisions of "LlWind"

From Second Life Wiki
Jump to: navigation, search
m
m (Replaced old <LSL> block with <source lang="lsl2">)
Line 14: Line 14:
 
|caveats
 
|caveats
 
|examples=
 
|examples=
<lsl>
+
<source lang="lsl2">
 
default
 
default
 
{
 
{
Line 22: Line 22:
 
     }
 
     }
 
}
 
}
</lsl>
+
</source>
 
|helpers
 
|helpers
 
|also_functions={{LSL DefineRow||[[llCloud]]}}
 
|also_functions={{LSL DefineRow||[[llCloud]]}}

Revision as of 11:51, 22 January 2015

Summary

Function: vector llWind( vector offset );

Returns a vector that is the wind velocity at the prim's position + offset

• vector offset offset relative to the prim's position and expressed in local coordinates

The requested position needs to be in the same region. Only the x and y coordinates in offset are important, the z component is ignored.

Examples

default
{
    touch_start(integer num)
    {
        llSay(0, "Wind velocity: " + (string)llWind(ZERO_VECTOR));
    }
}

See Also

Functions

•  llCloud

Articles

•  Weather SL Weather information

Deep Notes

All Issues

~ Search JIRA for related Issues
   llWind() and viewer wind effects do not match

Signature

function vector llWind( vector offset );