Talk:OSSL Constants

From OpenSimulator

Jump to: navigation, search

Just a Thought

This constants page is starting to get quite unruly and hard to follow. I've transposed this to a table here which is similar to the one used for LSL-Constants with the addition of one field for the Associated Function. This keeps it more consistent, simpler and less cluttered.

--WhiteStar 15:02, 22 November 2012 (UTC)


Constant Name Value Associated Function Notes
CHANGED_ANIMATION 16384 changed() The set of animations playing on the avatar to whom this object is attached has been changed
DATA_SIM_RELEASE 128 llRequestSimulatorData() dataserver() Returns the version of the simulator the script is running in the string parameter of llRequestSimulatorData is ignored.
OS_NPC 0x01000000 llDetectedType()

llSensor()

Target is NPC. Use this instead of NPC (Justincc's blog)
VEHICLE_RANGE_BLOCK 45 llSetVehicleVectorParam()
VEHICLE_ROLL_FRAME 46 llSetVehicleRotationParam()
VEHICLE_FLAG_NO_X 1024 llSetVehicleFlags()llRemoveVehicleFlags()
VEHICLE_FLAG_NO_Y 2048 llSetVehicleFlags()llRemoveVehicleFlags()
VEHICLE_FLAG_NO_Z 4096 llSetVehicleFlags()llRemoveVehicleFlags()
VEHICLE_FLAG_LOCK_HOVER_HEIGHT 8192 llSetVehicleFlags()llRemoveVehicleFlags()
VEHICLE_FLAG_NO_DEFLECTION 16392 llSetVehicleFlags()llRemoveVehicleFlags()
VEHICLE_FLAG_LOCK_ROTATION 32784 llSetVehicleFlags()llRemoveVehicleFlags()
LIST_STAT_HARMONIC_MEAN 100 llListStatistics() Returns the harmonic mean of a list of numbers.
CAMERA_FOCUS_OFFSET_X 2 llSetCameraParams() Adjusts the camera focus x position relative to the target. (float)
CAMERA_FOCUS_OFFSET_Y 3 llSetCameraParams() Adjusts the camera focus y position relative to the target. (float)
CAMERA_FOCUS_OFFSET_Z 4 llSetCameraParams() Adjusts the camera focus z position relative to the target. (float)
CAMERA_POSITION_X 14 llSetCameraParams() Sets camera x position in region coordinates. (float)
CAMERA_POSITION_Y 15 llSetCameraParams() Sets camera y position in region coordinates. (float)
CAMERA_POSITION_Z 16 llSetCameraParams() sets camera z position in region coordinates. (float)
CAMERA_FOCUS_X 18 llSetCameraParams() Sets camera x focus (target position) in region coordinates. (float)
CAMERA_FOCUS_Y 19 llSetCameraParams() Sets camera y focus (target position) in region coordinates. (float)
CAMERA_FOCUS_Z 20 llSetCameraParams() Sets camera z focus (target position) in region coordinates. (float)
LSL_STATUS_OK 0 llSetPrimMediaParams()
LSL_STATUS_MALFORMED_PARAMS 1000 llSetPrimMediaParams()
LSL_STATUS_TYPE_MISMATCH 1001 llSetPrimMediaParams()
LSL_STATUS_BOUNDS_ERROR 1002 llSetPrimMediaParams()
LSL_STATUS_NOT_FOUND 1003 llSetPrimMediaParams()
LSL_STATUS_NOT_SUPPORTED 1004 llSetPrimMediaParams()
LSL_STATUS_INTERNAL_ERROR 1999 llSetPrimMediaParams()
LSL_STATUS_WHITELIST_FAILED 2001 llSetPrimMediaParams()
STATS_TIME_DILATION 0 osGetRegionStats() Time Dilation
STATS_SIM_FPS 1 osGetRegionStats() Sim FPS
STATS_PHYSICS_FPS 2 osGetRegionStats() Physics FPS
STATS_AGENT_UPDATES 3 osGetRegionStats() Agent Updates/Sec
STATS_ROOT_AGENTS 4 osGetRegionStats() Main Agents
STATS_CHILD_AGENTS 5 osGetRegionStats() Child Agents
STATS_TOTAL_PRIMS 6 osGetRegionStats() Objects
STATS_ACTIVE_PRIMS 7 osGetRegionStats() Active Objects
STATS_FRAME_MS 8 osGetRegionStats() Total Frame Time
STATS_NET_MS 9 osGetRegionStats() Net Time
STATS_PHYSICS_MS 10 osGetRegionStats() Physics Time
STATS_IMAGE_MS 11 osGetRegionStats() Images Time
STATS_OTHER_MS 12 osGetRegionStats() (Other Time)
STATS_IN_PACKETS_PER_SECOND 13 osGetRegionStats() Packets In
STATS_OUT_PACKETS_PER_SECOND 14 osGetRegionStats() Packets Out
STATS_UNACKED_BYTES 15 osGetRegionStats() Total Unacked Bytes
STATS_AGENT_MS 16 osGetRegionStats() Agent Time
STATS_PENDING_DOWNLOADS 17 osGetRegionStats() Pending Downloads
STATS_PENDING_UPLOADS 18 osGetRegionStats() Pending Uploads
STATS_ACTIVE_SCRIPTS 19 osGetRegionStats() Active Scripts
STATS_SCRIPT_LPS 20 osGetRegionStats() (Script Line Per Second)
OS_NPC_FLY 0 osNpcMoveToTarget()
OS_NPC_NO_FLY 1 osNpcMoveToTarget()
OS_NPC_LAND_AT_TARGET 2 osNpcMoveToTarget()
OS_NPC_RUNNING 4 osNpcMoveToTarget()
OS_NPC_SIT_NOW 0 osNpcSit()
OS_NPC_CREATOR_OWNED 0x1 osNpcCreate()
OS_NPC_NOT_OWNED 0x2 osNpcCreate()
OS_NPC_SENSE_AS_AGENT 0x4 osNpcCreate()
PARCEL_DETAILS_CLAIMDATE 10 osSetParcelDetails() Set parcel claim date
OS_LISTEN_REGEX_NAME 0x1 osListenRegex() Process name parameter as regex
OS_LISTEN_REGEX_MESSAGE 0x2 osListenRegex() Process message parameter as regex
OS_ATTACH_MSG_ALL -65535 osMessageAttachments() Send the message to attachments on every point
OS_ATTACH_MSG_INVERT_POINTS 1 osMessageAttachments() Invert how the attachment points list should be treated
OS_ATTACH_MSG_OBJECT_CREATOR 2 osMessageAttachments() Send only to those have the same CreatorID with host object CreatorID
OS_ATTACH_MSG_SCRIPT_CREATOR 4 osMessageAttachments() Send only to those have the same CreatorID with sender script CreatorID
WL_WATER_COLOR 0 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_WATER_FOG_DENSITY_EXPONENT 1 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_UNDERWATER_FOG_MODIFIER 2 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_REFLECTION_WAVELET_SCALE 3 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_FRESNEL_SCALE 4 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_FRESNEL_OFFSET 5 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_REFRACT_SCALE_ABOVE 6 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_REFRACT_SCALE_BELOW 7 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_BLUR_MULTIPLIER 8 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_BIG_WAVE_DIRECTION 9 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_LITTLE_WAVE_DIRECTION 10 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_NORMAL_MAP_TEXTURE 11 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_HORIZON 12 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_HAZE_HORIZON 13 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_BLUE_DENSITY 14 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_HAZE_DENSITY 15 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_DENSITY_MULTIPLIER 16 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_DISTANCE_MULTIPLIER 17 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_MAX_ALTITUDE 18 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_SUN_MOON_COLOR 19 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_AMBIENT 20 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_EAST_ANGLE 21 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_SUN_GLOW_FOCUS 22 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_SUN_GLOW_SIZE 23 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_SCENE_GAMMA 24 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_STAR_BRIGHTNESS 25 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_COLOR 26 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_XY_DENSITY 27 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_COVERAGE 28 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_SCALE 29 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_DETAIL_XY_DENSITY 30 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_SCROLL_X 31 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_SCROLL_Y 32 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_SCROLL_Y_LOCK 33 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_CLOUD_SCROLL_X_LOCK 34 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_DRAW_CLASSIC_CLOUDS 35 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()
WL_SUN_MOON_POSITION 36 lsGetWindlightScene()
lsSetWindlightScene()
lsSetWindlightSceneTargeted()

Back to Scripting Documentation

Personal tools
General
About This Wiki