OSSL Constants

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
  
 
==== [http://wiki.secondlife.com/wiki/Changed changed() event] ====
 
==== [http://wiki.secondlife.com/wiki/Changed changed() event] ====
 +
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[OSSL Constants/CHANGED_ANIMATION|CHANGED_ANIMATION]] || 16384 || the set of animations playing on the avatar to whom this object is attached has been changed.
 +
|}
  
 +
==== [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"
 
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| '''Constant Name''' || '''Value''' || '''Description'''
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
| [[OSSL Constants/CHANGED ANIMATION|CHANGED_ANIMATION]] || 16384 || the set of animations playing on the avatar to whom this object is attached has been changed.
+
| [[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()] ====
 
==== [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"
 
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable"
 
|-
 
|-
| '''Constant Name''' || '''Value''' || '''Description'''
+
| '''Name''' || '''Value''' || '''Description'''
 
|-
 
|-
 
| [[OSSL Constants/OS_NPC|OS_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])
 
| [[OSSL Constants/OS_NPC|OS_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"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[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"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[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"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[OSSL Constants/VEHICLE_FLAG_NO_X|VEHICLE_FLAG_NO_X]] || 1024 ||
 +
|-
 +
| [[OSSL Constants/VEHICLE_FLAG_NO_Y|VEHICLE_FLAG_NO_Y]] || 2048 ||
 +
|-
 +
| [[OSSL Constants/VEHICLE_FLAG_NO_Z|VEHICLE_FLAG_NO_Z]] || 4096 ||
 +
|-
 +
| [[OSSL Constants/VEHICLE_FLAG_LOCK_HOVER_HEIGHT|VEHICLE_FLAG_LOCK_HOVER_HEIGHT]] || 8192 ||
 +
|-
 +
| [[OSSL Constants/VEHICLE_FLAG_NO_DEFLECTION|VEHICLE_FLAG_NO_DEFLECTION]] || 16392 ||
 +
|-
 +
| [[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"
 +
|-
 +
| '''Name''' || '''Value''' || '''Description'''
 +
|-
 +
| [[OSSL Constants/LIST_STAT_HARMONIC_MEAN|LIST_STAT_HARMONIC_MEAN]] || 100 ||
 
|}
 
|}
  

Revision as of 00:36, 18 November 2012

Contents

OSSL Constants

These are extracted from OpenSimulator DEV 0.7.4 OpenSim-9d66792-r/18996 May 12, 2012

Sources:

  • LSL_Constants.cs (OpenSimulator source) for LSL and OSSL Constants
  • CM_Constants.cs (OpenSimulator source) for LightShare/Windlight Constants

Additional constants to the LSL functions/events

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.

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.

llDetectedType() and llSensor()

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

llSetVehicleVectorParam()

Name Value Description
VEHICLE_RANGE_BLOCK 45

llSetVehicleRotationParam()

Name Value Description
VEHICLE_ROLL_FRAME 46

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

llListStatistics()

Name Value Description
LIST_STAT_HARMONIC_MEAN 100


Constant Name Value Notes
STATS_TIME_DILATION 0 osGetRegionStats
STATS_SIM_FPS 1 osGetRegionStats
STATS_PHYSICS_FPS 2 osGetRegionStats
STATS_AGENT_UPDATES 3 osGetRegionStats
STATS_ROOT_AGENTS 4 osGetRegionStats
STATS_CHILD_AGENTS 5 osGetRegionStats
STATS_TOTAL_PRIMS 6 osGetRegionStats
STATS_ACTIVE_PRIMS 7 osGetRegionStats
STATS_FRAME_MS 8 osGetRegionStats
STATS_NET_MS 9 osGetRegionStats
STATS_PHYSICS_MS 10 osGetRegionStats
STATS_IMAGE_MS 11 osGetRegionStats
STATS_OTHER_MS 12 osGetRegionStats
STATS_IN_PACKETS_PER_SECOND 13 osGetRegionStats
STATS_OUT_PACKETS_PER_SECOND 14 osGetRegionStats
STATS_UNACKED_BYTES 15 osGetRegionStats
STATS_AGENT_MS 16 osGetRegionStats
STATS_PENDING_DOWNLOADS 17 osGetRegionStats
STATS_PENDING_UPLOADS 18 osGetRegionStats
STATS_ACTIVE_SCRIPTS 19 osGetRegionStats
STATS_SCRIPT_LPS 20 osGetRegionStats
OS_NPC_FLY 0 osNPC
OS_NPC_NO_FLY 1 osNPC
OS_NPC_LAND_AT_TARGET 2 osNPC
OS_NPC_SIT_NOW 0 osNPC
OS_NPC_CREATOR_OWNED 0x1 osNPC
OS_NPC_NOT_OWNED 0x2 osNPC
OS_NPC_SENSE_AS_AGENT 0x4 osNPC
OS_NPC_RUNNING 4 osNPC
PARCEL_DETAILS_CLAIMDATE 10 osSetParcelDetails
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

Back to Scripting Documentation

Personal tools
General
About This Wiki