Difference between revisions of "LlWind"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 27: Line 27:
|also_articles={{LSL DefineRow||{{LSLGC|Weather}}|SL Weather information}}
|also_articles={{LSL DefineRow||{{LSLGC|Weather}}|SL Weather information}}
|notes
|notes
|issues={{Issue|SVC-3131|llWind() and viewer wind effects do not match}}
|issues={{Issue/V1|SVC-3131|llWind() and viewer wind effects do not match}}
|cat1=Region
|cat1=Region
|cat2=Weather
|cat2=Weather

Revision as of 14:15, 26 September 2013

Summary

Function: vector llWind( vector offset );
0.0 Forced Delay
10.0 Energy

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

<lsl> default {

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

}

</lsl>

See Also

Functions

•  llCloud

Articles

•  Weather SL Weather information

Deep Notes

Signature

function vector llWind( vector offset );