From Second Life Wiki
Revision as of 13:10, 18 June 2013 by Soft Linden (Talk | contribs)

Jump to: navigation, search


Function: string llGetEnv( string name );

Returns a string with the requested data about the region.

• string name The name of the data to request

Note that the value returned is a string, you may need to cast it to an integer for use in calculations.

Table of valid name values.
Name Description Type to typecast to
"dynamic_pathfinding" Get the region's effective dynamic_pathfinding status, "enabled" or "disabled". This option is configured in the Region Debug Console N/A
"estate_id" Numerical index identifying which estate a region belongs to. Main grid mainland is "1" integer
"frame_number" Get the frame number of the simulator, for example "42042". integer
"region_idle" Get the region's idle status, "1" or "0". integer boolean
"sim_channel" Get the region's channel string, for example "Second Life Server". N/A
"sim_version" Get the region's version number string, for example "". N/A


<lsl> default {

   touch_start(integer total_number)
       string version = llGetEnv("sim_version");
       llOwnerSay("Region " + llGetRegionName() + " is running "
                  + llGetEnv("sim_channel") + " version " + version );
       list ver = llParseString2List(version, ["."], []);
       llOwnerSay("Build: "+llList2String(ver, 3));
       llOwnerSay("Build Date: "+llList2String(ver, 2)+"-"+llList2String(ver, 1)+"-20"+llList2String(ver, 0));




  • Region idling lowers a region's framerate when no avatars are currently on or looking into the region. Scripts measuring time dilation with llGetRegionTimeDilation may report significant time dilation if the region is idle.

See Also

Deep Notes


  • SVC-4874
  • Introduced in Second Life RC LeTigre, deployed on 2010-12-01.
  • Deployed to rest of Agni with Second Life Server, Second Life RC BlueSteel, Second Life RC Magnum
  • "frame_number" option added in Second Life RC BlueSteel
    • Returns an integer that represents the current 'frame' of the simulator. Generally only useful for specific debugging cases.
  • Removed (temporarily?) in Second Life RC BlueSteel

Search JIRA for related Issues


function string llGetEnv( string name );