OSSL Constants
From OpenSimulator
(Difference between revisions)
Line 72: | Line 72: | ||
| '''Name''' || '''Value''' || '''Description''' | | '''Name''' || '''Value''' || '''Description''' | ||
|- | |- | ||
− | | [[OSSL Constants/LIST_STAT_HARMONIC_MEAN|LIST_STAT_HARMONIC_MEAN]] || 100 || | + | | [[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" | ||
+ | |- | ||
+ | | '''Name''' || '''Value''' || '''Description''' | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_FOCUS_OFFSET_X|CAMERA_FOCUS_OFFSET_X]] || 2 || adjusts the camera focus x position relative to the target. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_FOCUS_OFFSET_Y|CAMERA_FOCUS_OFFSET_Y]] || 3 || adjusts the camera focus y position relative to the target. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_FOCUS_OFFSET_Z|CAMERA_FOCUS_OFFSET_Z]] || 4 || adjusts the camera focus z position relative to the target. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_POSITION_X|CAMERA_POSITION_X]] || 14 || sets camera x position in region coordinates. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_POSITION_Y|CAMERA_POSITION_Y]] || 15 || sets camera y position in region coordinates. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_POSITION_Z|CAMERA_POSITION_Z]] || 16 || sets camera z position in region coordinates. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_FOCUS_X|CAMERA_FOCUS_X]] || 18 || sets camera x focus (target position) in region coordinates. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_FOCUS_Y|CAMERA_FOCUS_Y]] || 19 || sets camera y focus (target position) in region coordinates. (float) | ||
+ | |- | ||
+ | | [[OSSL Constants/CAMERA_FOCUS_Z|CAMERA_FOCUS_Z]] || 20 || sets camera z focus (target position) in region coordinates. (float) | ||
+ | |} | ||
+ | |||
+ | |||
+ | === For the OSSL functions === | ||
{| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable" | {| cellspacing="0" cellpadding="5" border="1" align="centre" class="sortable" |
Revision as of 04:50, 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 | returns the harmonic mean of a list of numbers. |
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) |
For the OSSL functions
Back to Scripting Documentation