Difference between revisions of "Template:LSL Constants/llRequestInventoryData"

From Second Life Wiki
Jump to navigation Jump to search
(Clarified wording.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{|{{Prettytable}}</noinclude>
<noinclude>{|{{Prettytable}}</noinclude>{{#if:
 
<!-- do not forget to update this value! -->
{{#vardefine:InsertRows|1}}
 
}}
{{!}} colspan="2" {{!}} Landmark
{{!}} colspan="2" {{!}} Landmark
{{!}} ([[vector]])
{{!}} ([[vector]])
{{!}} colspan="4" {{!}} global_position_of_landmark = {{LSLG|llGetRegionCorner}}() + (vector)data;
{{!}} colspan="4" {{!}} The vector [[Viewer_coordinate_frames#Region|data]] received by [[dataserver]] is a global position ''as an offset'' from the current region's origin (<0,0,0>). To obtain the absolute [[Viewer_coordinate_frames#Global|global]] position of a landmark, add [[llGetRegionCorner]]() to the vector.
<noinclude>|}</noinclude>
<noinclude>|}</noinclude>

Latest revision as of 16:33, 23 February 2024

Landmark (vector) The vector data received by dataserver is a global position as an offset from the current region's origin (<0,0,0>). To obtain the absolute global position of a landmark, add llGetRegionCorner() to the vector.