OSSL Constants

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Added missing PARCEL_DETAILS_CLAIMDATE)
 
(34 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 +
{{Quicklinks}}
 +
 
==OSSL Constants==
 
==OSSL Constants==
  
These are extracted from OpenSim DEV 0.7.4 OpenSim-0007711-r/18206 March 1, 2012
+
These are extracted from OpenSimulator DEV 0.7.4 r/21068 17th November, 2012  
  
 
Sources:
 
Sources:
LSL_Constants.cs (OpenSim source) for LSL and OSSL Constants
+
* LSL_Constants.cs (OpenSimulator source) for LSL and OSSL Constants
CM_Constants.cs (OpenSim source) for LightShare/Windlight Constants
+
* <del>CM_Constants.cs (OpenSimulator source) for LightShare/Windlight Constants</del> (this file is obsolete for 0.9.X)
  
 +
=== Additional constants for LSL functions/events ===
  
 +
==== [http://wiki.secondlife.com/wiki/Changed changed() event] ====
 
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| '''Constant Name''' || '''Value''' || '''Notes'''
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| NPC || 0x20 ||
+
| [[OSSL Constants/CHANGED_ANIMATION|CHANGED_ANIMATION]] || 16384 || the set of animations playing on the avatar to whom this object is attached has been changed.
|-
+
|}
| CHANGED_ANIMATION || 16384 || OS Only Change Event Useage
+
 
|-       
+
==== [http://wiki.secondlife.com/wiki/LlGetParcelDetails llGetParcelDetails] ====
| PARCEL_DETAILS_CLAIMDATE || 10 ||
+
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
|-
+
| STATS_TIME_DILATION || 0 || osGetRegionStats
+
 
|-
 
|-
| STATS_SIM_FPS || 1 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_PHYSICS_FPS || 2 || osGetRegionStats
+
| [[OSSL Constants/PARCEL DETAILS DWELL|PARCEL_DETAILS_DWELL]] || 64 || get parcel dwell
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlRequestSimulatorData llRequestSimulatorData()] and  [http://wiki.secondlife.com/wiki/Dataserver dataserver() event] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_AGENT_UPDATES || 3 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_ROOT_AGENTS || 4 || osGetRegionStats
+
| [[OSSL Constants/DATA_SIM_RELEASE|DATA_SIM_RELEASE]] || 128 || returns the version of the simulator the script is running in; the string parameter of llRequestSimulatorData is ignored.
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlDetectedType llDetectedType()] and [http://wiki.secondlife.com/wiki/LlSensor llSensor()] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_CHILD_AGENTS || 5 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_TOTAL_PRIMS || 6 || osGetRegionStats
+
| [[OSSL Constants/OS_NPC|<s>OS_NPC</s><br>NPC]] || 0x01000000 ||Target is [[OSSLNPC|NPC]]. Use this instead of NPC ([http://justincc.org/blog/2012/07/25/this-week-in-opensim-dev-week-ending-21st-july-2012/ Justincc's blog])
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlSetVehicleVectorParam llSetVehicleVectorParam()] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_ACTIVE_PRIMS || 7 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_FRAME_MS || 8 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_RANGE_BLOCK|VEHICLE_RANGE_BLOCK]] || 45 ||
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlSetVehicleRotationParam llSetVehicleRotationParam()] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_NET_MS || 9 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_PHYSICS_MS || 10 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_ROLL_FRAME|VEHICLE_ROLL_FRAME]] || 46 ||
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlSetVehicleFlags llSetVehicleFlags()] and [http://wiki.secondlife.com/wiki/LlRemoveVehicleFlags llRemoveVehicleFlags()] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_IMAGE_MS || 11 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_OTHER_MS || 12 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_FLAG_NO_X|VEHICLE_FLAG_NO_X]] || 1024 ||  
 
|-
 
|-
| STATS_IN_PACKETS_PER_SECOND || 13 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_FLAG_NO_Y|VEHICLE_FLAG_NO_Y]] || 2048 ||  
 
|-
 
|-
| STATS_OUT_PACKETS_PER_SECOND || 14 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_FLAG_NO_Z|VEHICLE_FLAG_NO_Z]] || 4096 ||  
 
|-
 
|-
| STATS_UNACKED_BYTES || 15 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_FLAG_LOCK_HOVER_HEIGHT|VEHICLE_FLAG_LOCK_HOVER_HEIGHT]] || 8192 ||  
 
|-
 
|-
| STATS_AGENT_MS || 16 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_FLAG_NO_DEFLECTION|VEHICLE_FLAG_NO_DEFLECTION]] || 16392 ||  
 
|-
 
|-
| STATS_PENDING_DOWNLOADS || 17 || osGetRegionStats
+
| [[OSSL Constants/VEHICLE_FLAG_LOCK_ROTATION|VEHICLE_FLAG_LOCK_ROTATION]] || 32784 ||
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlListStatistics llListStatistics()] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_PENDING_UPLOADS || 18 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| STATS_ACTIVE_SCRIPTS || 19 || osGetRegionStats
+
| [[OSSL Constants/LIST_STAT_HARMONIC_MEAN|LIST_STAT_HARMONIC_MEAN]] || 100 || returns the harmonic mean of a list of numbers.
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlSetCameraParams llSetCameraParams()] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| STATS_SCRIPT_LPS || 20 || osGetRegionStats
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| OS_NPC_FLY || 0 || osNPC
+
| [[OSSL Constants/CAMERA_FOCUS_OFFSET_X|CAMERA_FOCUS_OFFSET_X]] || 2 || adjusts the camera focus x position relative to the target. (float)
 
|-
 
|-
| OS_NPC_NO_FLY || 1 || osNPC
+
| [[OSSL Constants/CAMERA_FOCUS_OFFSET_Y|CAMERA_FOCUS_OFFSET_Y]] || 3 || adjusts the camera focus y position relative to the target. (float)
 
|-
 
|-
| OS_NPC_LAND_AT_TARGET|| 2 || osNPC
+
| [[OSSL Constants/CAMERA_FOCUS_OFFSET_Z|CAMERA_FOCUS_OFFSET_Z]] || 4 || adjusts the camera focus z position relative to the target. (float)
 
|-
 
|-
| OS_NPC_SIT_NOW || 0 || osNPC
+
| [[OSSL Constants/CAMERA_POSITION_X|CAMERA_POSITION_X]] || 14 || sets camera x position in region coordinates. (float)
 
|-
 
|-
| OS_NPC_CREATOR_OWNED || 0x1 || osNPC
+
| [[OSSL Constants/CAMERA_POSITION_Y|CAMERA_POSITION_Y]] || 15 || sets camera y position in region coordinates. (float)
 
|-
 
|-
| OS_NPC_NOT_OWNED || 0x2 || osNPC
+
| [[OSSL Constants/CAMERA_POSITION_Z|CAMERA_POSITION_Z]] || 16 || sets camera z position in region coordinates. (float)
 
|-
 
|-
| OS_NPC_SENSE_AS_AGENT || 0x4 || osNPC
+
| [[OSSL Constants/CAMERA_FOCUS_X|CAMERA_FOCUS_X]] || 18 || sets camera x focus (target position) in region coordinates. (float)
 
|-
 
|-
| WL_WATER_COLOR || 0||  
+
| [[OSSL Constants/CAMERA_FOCUS_Y|CAMERA_FOCUS_Y]] || 19 || sets camera y focus (target position) in region coordinates. (float)
 
|-
 
|-
| PARCEL_DETAILS_CLAIMDATE || 10|| osSetParcelDetails
+
| [[OSSL Constants/CAMERA_FOCUS_Z|CAMERA_FOCUS_Z]] || 20 || sets camera z focus (target position) in region coordinates. (float)
 +
|}
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlSetPrimMediaParams llSetPrimMediaParams()] ====
 +
 
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| WL_WATER_FOG_DENSITY_EXPONENT || 1||  
+
| '''Name''' || '''Value'''
 
|-
 
|-
| WL_UNDERWATER_FOG_MODIFIER || 2||  
+
| [[OSSL Constants/LSL_STATUS_OK|LSL_STATUS_OK]] || 0
 
|-
 
|-
| WL_REFLECTION_WAVELET_SCALE || 3||  
+
| [[OSSL Constants/LSL_STATUS_MALFORMED_PARAMS|LSL_STATUS_MALFORMED_PARAMS]] || 1000
 
|-
 
|-
| WL_FRESNEL_SCALE || 4||  
+
| [[OSSL Constants/LSL_STATUS_TYPE_MISMATCH|LSL_STATUS_TYPE_MISMATCH]] || 1001
 
|-
 
|-
| WL_FRESNEL_OFFSET || 5||  
+
| [[OSSL Constants/LSL_STATUS_BOUNDS_ERROR|LSL_STATUS_BOUNDS_ERROR]] || 1002
 
|-
 
|-
| WL_REFRACT_SCALE_ABOVE || 6||  
+
| [[OSSL Constants/LSL_STATUS_NOT_FOUND|LSL_STATUS_NOT_FOUND]] || 1003
 
|-
 
|-
| WL_REFRACT_SCALE_BELOW || 7||  
+
| [[OSSL Constants/LSL_STATUS_NOT_SUPPORTED|LSL_STATUS_NOT_SUPPORTED]] || 1004
 
|-
 
|-
| WL_BLUR_MULTIPLIER || 8||  
+
| [[OSSL Constants/LSL_STATUS_INTERNAL_ERROR|LSL_STATUS_INTERNAL_ERROR]] || 1999
 
|-
 
|-
| WL_BIG_WAVE_DIRECTION || 9||  
+
| [[OSSL Constants/LSL_STATUS_WHITELIST_FAILED|LSL_STATUS_WHITELIST_FAILED]] || 2001
 +
|}
 +
 
 +
==== Additional bit mask for LSL functions/events ====
 +
 
 +
==== [http://wiki.secondlife.com/wiki/LlGetAgentList LlGetAgentList () function] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| WL_LITTLE_WAVE_DIRECTION || 10||  
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| WL_NORMAL_MAP_TEXTURE || 11||  
+
| [[AGENT_LIST_EXCLUDENPC]] || 0x4000000|| bit mask option to llGetAgentList scope to exclude NPCs.
 +
|}
 +
 
 +
==== Additional constants for OSSL functions/events ====
 +
 
 +
==== [[OsGetRegionStats|osGetRegionStats()]] ====
 +
 
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| WL_HORIZON || 12||  
+
| '''Name''' || '''Value''' || '''Statistics Bar Label''' || '''Description'''
 
|-
 
|-
| WL_HAZE_HORIZON || 13||  
+
| [[OSSL Constants/STATS TIME DILATION|STATS_TIME_DILATION]] || 0 || Time Dilation ||
 
|-
 
|-
| WL_BLUE_DENSITY || 14||  
+
| [[OSSL Constants/STATS SIM FPS|STATS_SIM_FPS]] || 1 || Sim FPS (Frame Per Second) ||
 
|-
 
|-
| WL_HAZE_DENSITY || 15||  
+
| [[OSSL Constants/STATS PHYSICS FPS|STATS_PHYSICS_FPS]] || 2 || Physics FPS (Frame Per Second) ||
 
|-
 
|-
| WL_DENSITY_MULTIPLIER || 16||  
+
| [[OSSL Constants/STATS AGENT UPDATES|STATS_AGENT_UPDATES]] || 3 || Agent Updates/Sec ||
 
|-
 
|-
| WL_DISTANCE_MULTIPLIER || 17||  
+
| [[OSSL Constants/STATS ROOT AGENTS|STATS_ROOT_AGENTS]] || 4 || Main Agents ||
 
|-
 
|-
| WL_MAX_ALTITUDE || 18||  
+
| [[OSSL Constants/STATS CHILD AGENTS|STATS_CHILD_AGENTS]] || 5 || Child Agents ||
 
|-
 
|-
| WL_SUN_MOON_COLOR || 19||  
+
| [[OSSL Constants/STATS TOTAL PRIMS|STATS_TOTAL_PRIMS]] || 6 || Objects || Reports worn prims also
 
|-
 
|-
| WL_AMBIENT || 20||  
+
| [[OSSL Constants/STATS ACTIVE PRIMS|STATS_ACTIVE_PRIMS]] || 7 || Active Objects ||
 
|-
 
|-
| WL_EAST_ANGLE || 21||  
+
| [[OSSL Constants/STATS FRAME MS|STATS_FRAME_MS]] || 8 || Total Frame Time ||
 
|-
 
|-
| WL_SUN_GLOW_FOCUS || 22||  
+
| [[OSSL Constants/STATS NET MS|STATS_NET_MS]] || 9 || Net Time ||
 
|-
 
|-
| WL_SUN_GLOW_SIZE || 23||  
+
| [[OSSL Constants/STATS PHYSICS MS|STATS_PHYSICS_MS]] || 10 || Physics Time ||
 
|-
 
|-
| WL_SCENE_GAMMA || 24||  
+
| [[OSSL Constants/STATS IMAGE MS|STATS_IMAGE_MS]] || 11 || Images Time ||
 
|-
 
|-
| WL_STAR_BRIGHTNESS || 25||  
+
| [[OSSL Constants/STATS OTHER MS|STATS_OTHER_MS]] || 12 || (Other Time) ||
 
|-
 
|-
| WL_CLOUD_COLOR || 26||  
+
| [[OSSL Constants/STATS IN PACKETS PER SECOND|STATS_IN_PACKETS_PER_SECOND]] || 13 || Packets In ||
 
|-
 
|-
| WL_CLOUD_XY_DENSITY || 27||  
+
| [[OSSL Constants/STATS OUT PACKETS PER SECOND|STATS_OUT_PACKETS_PER_SECOND]] || 14 || Packets Out ||
 
|-
 
|-
| WL_CLOUD_COVERAGE || 28||  
+
| [[OSSL Constants/STATS UNACKED BYTES|STATS_UNACKED_BYTES]] || 15 || Total Unacked Bytes ||
 
|-
 
|-
| WL_CLOUD_SCALE || 29||  
+
| [[OSSL Constants/STATS AGENT MS|STATS_AGENT_MS]] || 16 || Agent Time ||
 
|-
 
|-
| WL_CLOUD_DETAIL_XY_DENSITY || 30||  
+
| [[OSSL Constants/STATS PENDING DOWNLOADS|STATS_PENDING_DOWNLOADS]] || 17 || Pending Downloads ||
 
|-
 
|-
| WL_CLOUD_SCROLL_X || 31||  
+
| [[OSSL Constants/STATS PENDING UPLOADS|STATS_PENDING_UPLOADS]] || 18 || Pending Uploads ||
 
|-
 
|-
| WL_CLOUD_SCROLL_Y || 32||  
+
| [[OSSL Constants/STATS ACTIVE SCRIPTS|STATS_ACTIVE_SCRIPTS]] || 19 || Active Scripts ||
 
|-
 
|-
| WL_CLOUD_SCROLL_Y_LOCK || 33||  
+
| [[OSSL Constants/STATS SIM SLEEP|STATS_SIM_SLEEP]] || 20 || Sim Sleep ||
 
|-
 
|-
| WL_CLOUD_SCROLL_X_LOCK || 34||  
+
| [[OSSL Constants/STATS SCRIPT EPS|STATS_SCRIPT_EPS]] || 28 || Script EPS ||
 
|-
 
|-
| WL_DRAW_CLASSIC_CLOUDS || 35||  
+
| [[OSSL Constants/STATS SCRIPT TIME|STATS_SCRIPT_TIME]] || 37 || Script Time ||
 
|-
 
|-
| WL_SUN_MOON_POSITION || 36||
+
| [[OSSL Constants/STATS SCRIPT LPS|STATS_SCRIPT_LPS]] || 38 || (Script Line Per Second) ||
 
|-
 
|-
 +
| [[OSSL Constants/STATS SCRIPT NPCS|STATS_SCRIPT_NPCS]] || 47 || Script NPCS ||
 
|}
 
|}
 +
 +
==== [[OsNpcMoveToTarget|osNpcMoveToTarget()]] ====
 +
 +
See function page for descriptions of each constants.
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value'''
 +
|-
 +
| [[OSSL Constants/OS NPC FLY|OS_NPC_FLY]] || 0 
 +
|-
 +
| [[OSSL Constants/OS NPC NO FLY|OS_NPC_NO_FLY]] || 1 
 +
|-
 +
| [[OSSL Constants/OS NPC LAND AT TARGET|OS_NPC_LAND_AT_TARGET]] || 2
 +
|-
 +
| [[OSSL Constants/OS_NPC_RUNNING|OS_NPC_RUNNING]] || 4
 +
|}
 +
 +
==== [[OsNpcSit|osNpcSit()]] ====
 +
 +
See function page for descriptions of each constants.
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value'''
 +
|-
 +
| [[OSSL Constants/OS NPC SIT NOW|OS_NPC_SIT_NOW]] || 0
 +
|}
 +
 +
==== [[OsNpcCreate|osNpcCreate()]] ====
 +
 +
See function page for descriptions of each constants.
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value'''
 +
|-
 +
| [[OSSL Constants/OS NPC CREATOR OWNED|OS_NPC_CREATOR_OWNED]] || 0x1
 +
|-
 +
| [[OSSL Constants/OS NPC NOT OWNED|OS_NPC_NOT_OWNED]] || 0x2
 +
|-
 +
| [[OSSL Constants/OS NPC SENSE AS AGENT|OS_NPC_SENSE_AS_AGENT]] || 0x4
 +
|-
 +
| [[OSSL Constants/OS OS NPC OBJECT GROUP |OS_NPC_OBJECT_GROUP ]] || 0x8
 +
|}
 +
 +
==== [[osTeleportObject|osTeleportObject()]] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[OSSL Constants/OSTPOBJ_NONE|OSTPOBJ_NONE]] || 0x0 || It is just 0
 +
|-
 +
| [[OSSL Constants/OSTPOBJ_STOPATTARGET|OSTPOBJ_STOPATTARGET]] || 0x1 || Object is stopped at destination
 +
|-
 +
| [[OSSL Constants/OSTPOBJ_STOPONFAIL|OSTPOBJ_STOPONFAIL]] || 0x2 || Stops at start point if tp fails (still does nothing)
 +
|-
 +
| [[OSSL Constants/OSTPOBJ_SETROT|OSTPOBJ_SETROT]] || 0x3 || The rotation is the final object rotation, otherwise is a added rotation
 +
|}
 +
 +
==== [[OsSetParcelDetails| osSetParcelDetails()]] ====
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[OSSL Constants/PARCEL DETAILS CLAIMDATE|PARCEL_DETAILS_CLAIMDATE]] || 10|| set parcel claim date
 +
|}
 +
 +
==== [[OsListenRegex|osListenRegex()]] ====
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
|[[OSSL Constants/OS_LISTEN_REGEX_NAME|OS_LISTEN_REGEX_NAME]] || 0x1 || process name parameter as regex
 +
|-
 +
|[[OSSL Constants/OS_LISTEN_REGEX_MESSAGE|OS_LISTEN_REGEX_MESSAGE]] || 0x2 || process message parameter as regex
 +
|}
 +
 +
==== [[OsMessageAttachments|osMessageAttachments()]] ====
 +
 +
See function page for descriptions of each constants.
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
|[[OSSL Constants/OS_ATTACH_MSG_ALL|OS_ATTACH_MSG_ALL]] || -65535 || send the message to attachments on every point (this is a attachment point, not a option)
 +
|-
 +
|[[OSSL Constants/OS_ATTACH_MSG_INVERT_POINTS|OS_ATTACH_MSG_INVERT_POINTS]] || 1 || invert how the attachment points list should be treated
 +
|-
 +
|[[OSSL Constants/OS_ATTACH_MSG_OBJECT_CREATOR|OS_ATTACH_MSG_OBJECT_CREATOR]] || 2 || send only to those have the same CreatorID with host object CreatorID
 +
|-
 +
|[[OSSL Constants/OS_ATTACH_MSG_SCRIPT_CREATOR|OS_ATTACH_MSG_SCRIPT_CREATOR]] || 4 || send only to those have the same CreatorID with sender script CreatorID
 +
|}
 +
 +
==== [[lsGetWindlightScene|lsGetWindlightScene()]] & [[lsSetWindlightScene|lsSetWindlightScene()]] & [[lsSetWindlightSceneTargeted|lsSetWindlightSceneTargeted()]] ====
 +
 +
see [[LightShare Parameters]] for each description
 +
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value'''
 +
|-
 +
| [[OSSL Constants/WL WATER COLOR|WL_WATER_COLOR]] || 0
 +
|-
 +
| [[OSSL Constants/WL WATER FOG DENSITY EXPONENT|WL_WATER_FOG_DENSITY_EXPONENT]] || 1
 +
|-
 +
| [[OSSL Constants/WL UNDERWATER FOG MODIFIER|WL_UNDERWATER_FOG_MODIFIER]] || 2
 +
|-
 +
| [[OSSL Constants/WL REFLECTION WAVELET SCALE|WL_REFLECTION_WAVELET_SCALE]] || 3
 +
|-
 +
| [[OSSL Constants/WL FRESNEL SCALE|WL_FRESNEL_SCALE]] || 4
 +
|-
 +
| [[OSSL Constants/WL FRESNEL OFFSET|WL_FRESNEL_OFFSET]] || 5
 +
|-
 +
| [[OSSL Constants/WL REFRACT SCALE ABOVE|WL_REFRACT_SCALE_ABOVE]] || 6
 +
|-
 +
| [[OSSL Constants/WL REFRACT SCALE BELOW|WL_REFRACT_SCALE_BELOW]] || 7
 +
|-
 +
| [[OSSL Constants/WL BLUR MULTIPLIER|WL_BLUR_MULTIPLIER]] || 8
 +
|-
 +
| [[OSSL Constants/WL BIG WAVE DIRECTION|WL_BIG_WAVE_DIRECTION]] || 9
 +
|-
 +
| [[OSSL Constants/WL LITTLE WAVE DIRECTION|WL_LITTLE_WAVE_DIRECTION]] || 10
 +
|-
 +
| [[OSSL Constants/WL NORMAL MAP TEXTURE|WL_NORMAL_MAP_TEXTURE]] || 11
 +
|-
 +
| [[OSSL Constants/WL HORIZON|WL_HORIZON]] || 12
 +
|-
 +
| [[OSSL Constants/WL HAZE HORIZON|WL_HAZE_HORIZON]] || 13
 +
|-
 +
| [[OSSL Constants/WL BLUE DENSITY|WL_BLUE_DENSITY]] || 14
 +
|-
 +
| [[OSSL Constants/WL HAZE DENSITY|WL_HAZE_DENSITY]] || 15
 +
|-
 +
| [[OSSL Constants/WL DENSITY MULTIPLIER|WL_DENSITY_MULTIPLIER]] || 16
 +
|-
 +
| [[OSSL Constants/WL DISTANCE MULTIPLIER|WL_DISTANCE_MULTIPLIER]] || 17
 +
|-
 +
| [[OSSL Constants/WL MAX ALTITUDE|WL_MAX_ALTITUDE]] || 18
 +
|-
 +
| [[OSSL Constants/WL SUN MOON COLOR|WL_SUN_MOON_COLOR]] || 19
 +
|-
 +
| [[OSSL Constants/WL AMBIENT|WL_AMBIENT]] || 20
 +
|-
 +
| [[OSSL Constants/WL EAST ANGLE|WL_EAST_ANGLE]] || 21
 +
|-
 +
| [[OSSL Constants/WL SUN GLOW FOCUS|WL_SUN_GLOW_FOCUS]] || 22
 +
|-
 +
| [[OSSL Constants/WL SUN GLOW SIZE|WL_SUN_GLOW_SIZE]] || 23
 +
|-
 +
| [[OSSL Constants/WL SCENE GAMMA|WL_SCENE_GAMMA]] || 24
 +
|-
 +
| [[OSSL Constants/WL STAR BRIGHTNESS|WL_STAR_BRIGHTNESS]] || 25
 +
|-
 +
| [[OSSL Constants/WL CLOUD COLOR|WL_CLOUD_COLOR]] || 26
 +
|-
 +
| [[OSSL Constants/WL CLOUD XY DENSITY|WL_CLOUD_XY_DENSITY]] || 27
 +
|-
 +
| [[OSSL Constants/WL CLOUD COVERAGE|WL_CLOUD_COVERAGE]] || 28
 +
|-
 +
| [[OSSL Constants/WL CLOUD SCALE|WL_CLOUD_SCALE]] || 29
 +
|-
 +
| [[OSSL Constants/WL CLOUD DETAIL XY DENSITY|WL_CLOUD_DETAIL_XY_DENSITY]] || 30
 +
|-
 +
| [[OSSL Constants/WL CLOUD SCROLL X|WL_CLOUD_SCROLL_X]] || 31
 +
|-
 +
| [[OSSL Constants/WL CLOUD SCROLL Y|WL_CLOUD_SCROLL_Y]] || 32
 +
|-
 +
| [[OSSL Constants/WL CLOUD SCROLL Y LOCK|WL_CLOUD_SCROLL_Y_LOCK]] || 33
 +
|-
 +
| [[OSSL Constants/WL CLOUD SCROLL X LOCK|WL_CLOUD_SCROLL_X_LOCK]] || 34
 +
|-
 +
| [[OSSL Constants/WL DRAW CLASSIC CLOUDS|WL_DRAW_CLASSIC_CLOUDS]] || 35
 +
|-
 +
| [[OSSL Constants/WL SUN MOON POSITION|WL_SUN_MOON_POSITION]] || 36
 +
|-
 +
|}
 +
 +
==== Additional bit mask for OSSL functions/events ====
 +
...
 +
<br />
 +
 +
Back to [[Scripting Documentation]]
 +
 +
[[Category:OSSL]]
 +
[[Category:OSSL Constants]]
 +
[[Category:Scripting]]

Latest revision as of 05:14, 28 July 2024

Contents

[edit] OSSL Constants

These are extracted from OpenSimulator DEV 0.7.4 r/21068 17th November, 2012

Sources:

  • LSL_Constants.cs (OpenSimulator source) for LSL and OSSL Constants
  • CM_Constants.cs (OpenSimulator source) for LightShare/Windlight Constants (this file is obsolete for 0.9.X)

[edit] Additional constants for LSL functions/events

[edit] changed() event

Name Value Description
CHANGED_ANIMATION 16384 the set of animations playing on the avatar to whom this object is attached has been changed.

[edit] llGetParcelDetails

Name Value Description
PARCEL_DETAILS_DWELL 64 get parcel dwell

[edit] llRequestSimulatorData() and dataserver() event

Name Value Description
DATA_SIM_RELEASE 128 returns the version of the simulator the script is running in; the string parameter of llRequestSimulatorData is ignored.

[edit] llDetectedType() and llSensor()

Name Value Description
OS_NPC
NPC
0x01000000 Target is NPC. Use this instead of NPC (Justincc's blog)

[edit] llSetVehicleVectorParam()

Name Value Description
VEHICLE_RANGE_BLOCK 45

[edit] llSetVehicleRotationParam()

Name Value Description
VEHICLE_ROLL_FRAME 46

[edit] llSetVehicleFlags() and llRemoveVehicleFlags()

Name Value Description
VEHICLE_FLAG_NO_X 1024
VEHICLE_FLAG_NO_Y 2048
VEHICLE_FLAG_NO_Z 4096
VEHICLE_FLAG_LOCK_HOVER_HEIGHT 8192
VEHICLE_FLAG_NO_DEFLECTION 16392
VEHICLE_FLAG_LOCK_ROTATION 32784

[edit] llListStatistics()

Name Value Description
LIST_STAT_HARMONIC_MEAN 100 returns the harmonic mean of a list of numbers.

[edit] llSetCameraParams()

Name Value Description
CAMERA_FOCUS_OFFSET_X 2 adjusts the camera focus x position relative to the target. (float)
CAMERA_FOCUS_OFFSET_Y 3 adjusts the camera focus y position relative to the target. (float)
CAMERA_FOCUS_OFFSET_Z 4 adjusts the camera focus z position relative to the target. (float)
CAMERA_POSITION_X 14 sets camera x position in region coordinates. (float)
CAMERA_POSITION_Y 15 sets camera y position in region coordinates. (float)
CAMERA_POSITION_Z 16 sets camera z position in region coordinates. (float)
CAMERA_FOCUS_X 18 sets camera x focus (target position) in region coordinates. (float)
CAMERA_FOCUS_Y 19 sets camera y focus (target position) in region coordinates. (float)
CAMERA_FOCUS_Z 20 sets camera z focus (target position) in region coordinates. (float)

[edit] llSetPrimMediaParams()

Name Value
LSL_STATUS_OK 0
LSL_STATUS_MALFORMED_PARAMS 1000
LSL_STATUS_TYPE_MISMATCH 1001
LSL_STATUS_BOUNDS_ERROR 1002
LSL_STATUS_NOT_FOUND 1003
LSL_STATUS_NOT_SUPPORTED 1004
LSL_STATUS_INTERNAL_ERROR 1999
LSL_STATUS_WHITELIST_FAILED 2001

[edit] Additional bit mask for LSL functions/events

[edit] LlGetAgentList () function

Name Value Description
AGENT_LIST_EXCLUDENPC 0x4000000 bit mask option to llGetAgentList scope to exclude NPCs.

[edit] Additional constants for OSSL functions/events

[edit] osGetRegionStats()

Name Value Statistics Bar Label Description
STATS_TIME_DILATION 0 Time Dilation
STATS_SIM_FPS 1 Sim FPS (Frame Per Second)
STATS_PHYSICS_FPS 2 Physics FPS (Frame Per Second)
STATS_AGENT_UPDATES 3 Agent Updates/Sec
STATS_ROOT_AGENTS 4 Main Agents
STATS_CHILD_AGENTS 5 Child Agents
STATS_TOTAL_PRIMS 6 Objects Reports worn prims also
STATS_ACTIVE_PRIMS 7 Active Objects
STATS_FRAME_MS 8 Total Frame Time
STATS_NET_MS 9 Net Time
STATS_PHYSICS_MS 10 Physics Time
STATS_IMAGE_MS 11 Images Time
STATS_OTHER_MS 12 (Other Time)
STATS_IN_PACKETS_PER_SECOND 13 Packets In
STATS_OUT_PACKETS_PER_SECOND 14 Packets Out
STATS_UNACKED_BYTES 15 Total Unacked Bytes
STATS_AGENT_MS 16 Agent Time
STATS_PENDING_DOWNLOADS 17 Pending Downloads
STATS_PENDING_UPLOADS 18 Pending Uploads
STATS_ACTIVE_SCRIPTS 19 Active Scripts
STATS_SIM_SLEEP 20 Sim Sleep
STATS_SCRIPT_EPS 28 Script EPS
STATS_SCRIPT_TIME 37 Script Time
STATS_SCRIPT_LPS 38 (Script Line Per Second)
STATS_SCRIPT_NPCS 47 Script NPCS

[edit] osNpcMoveToTarget()

See function page for descriptions of each constants.

Name Value
OS_NPC_FLY 0
OS_NPC_NO_FLY 1
OS_NPC_LAND_AT_TARGET 2
OS_NPC_RUNNING 4

[edit] osNpcSit()

See function page for descriptions of each constants.

Name Value
OS_NPC_SIT_NOW 0

[edit] osNpcCreate()

See function page for descriptions of each constants.

Name Value
OS_NPC_CREATOR_OWNED 0x1
OS_NPC_NOT_OWNED 0x2
OS_NPC_SENSE_AS_AGENT 0x4
OS_NPC_OBJECT_GROUP 0x8

[edit] osTeleportObject()

Name Value Description
OSTPOBJ_NONE 0x0 It is just 0
OSTPOBJ_STOPATTARGET 0x1 Object is stopped at destination
OSTPOBJ_STOPONFAIL 0x2 Stops at start point if tp fails (still does nothing)
OSTPOBJ_SETROT 0x3 The rotation is the final object rotation, otherwise is a added rotation

[edit] osSetParcelDetails()

Name Value Description
PARCEL_DETAILS_CLAIMDATE 10 set parcel claim date

[edit] osListenRegex()

Name Value Description
OS_LISTEN_REGEX_NAME 0x1 process name parameter as regex
OS_LISTEN_REGEX_MESSAGE 0x2 process message parameter as regex

[edit] osMessageAttachments()

See function page for descriptions of each constants.

Name Value Description
OS_ATTACH_MSG_ALL -65535 send the message to attachments on every point (this is a attachment point, not a option)
OS_ATTACH_MSG_INVERT_POINTS 1 invert how the attachment points list should be treated
OS_ATTACH_MSG_OBJECT_CREATOR 2 send only to those have the same CreatorID with host object CreatorID
OS_ATTACH_MSG_SCRIPT_CREATOR 4 send only to those have the same CreatorID with sender script CreatorID

[edit] lsGetWindlightScene() & lsSetWindlightScene() & lsSetWindlightSceneTargeted()

see LightShare Parameters for each description

Name Value
WL_WATER_COLOR 0
WL_WATER_FOG_DENSITY_EXPONENT 1
WL_UNDERWATER_FOG_MODIFIER 2
WL_REFLECTION_WAVELET_SCALE 3
WL_FRESNEL_SCALE 4
WL_FRESNEL_OFFSET 5
WL_REFRACT_SCALE_ABOVE 6
WL_REFRACT_SCALE_BELOW 7
WL_BLUR_MULTIPLIER 8
WL_BIG_WAVE_DIRECTION 9
WL_LITTLE_WAVE_DIRECTION 10
WL_NORMAL_MAP_TEXTURE 11
WL_HORIZON 12
WL_HAZE_HORIZON 13
WL_BLUE_DENSITY 14
WL_HAZE_DENSITY 15
WL_DENSITY_MULTIPLIER 16
WL_DISTANCE_MULTIPLIER 17
WL_MAX_ALTITUDE 18
WL_SUN_MOON_COLOR 19
WL_AMBIENT 20
WL_EAST_ANGLE 21
WL_SUN_GLOW_FOCUS 22
WL_SUN_GLOW_SIZE 23
WL_SCENE_GAMMA 24
WL_STAR_BRIGHTNESS 25
WL_CLOUD_COLOR 26
WL_CLOUD_XY_DENSITY 27
WL_CLOUD_COVERAGE 28
WL_CLOUD_SCALE 29
WL_CLOUD_DETAIL_XY_DENSITY 30
WL_CLOUD_SCROLL_X 31
WL_CLOUD_SCROLL_Y 32
WL_CLOUD_SCROLL_Y_LOCK 33
WL_CLOUD_SCROLL_X_LOCK 34
WL_DRAW_CLASSIC_CLOUDS 35
WL_SUN_MOON_POSITION 36

[edit] Additional bit mask for OSSL functions/events

...

Back to Scripting Documentation

Personal tools
General
About This Wiki