Scripting
LSL Guide
Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.
Constants
53 starting with “R” of 934 — the named values scripts use for flags, permissions and change events.
| Constant | Type | Value |
|---|---|---|
| RAD_TO_DEG | float | 57.29578f |
| RC_DATA_FLAGS | LSLInteger | 2 |
| RC_DETECT_PHANTOM | LSLInteger | 1 |
| RC_GET_LINK_NUM | LSLInteger | 4 |
| RC_GET_NORMAL | LSLInteger | 1 |
| RC_GET_ROOT_KEY | LSLInteger | 2 |
| RC_MAX_HITS | LSLInteger | 3 |
| RC_REJECT_AGENTS | LSLInteger | 1 |
| RC_REJECT_HOST | LSLInteger | 0x20000000 |
| RC_REJECT_HOSTGROUP | LSLInteger | 0x40000000 |
| RC_REJECT_LAND | LSLInteger | 8 |
| RC_REJECT_NONPHYSICAL | LSLInteger | 4 |
| RC_REJECT_PHYSICAL | LSLInteger | 2 |
| RC_REJECT_TYPES | LSLInteger | 0 |
| RCERR_CAST_TIME_EXCEEDED | LSLInteger | -3 |
| RCERR_SIM_PERF_LOW | LSLInteger | -2 |
| RCERR_UNKNOWN | LSLInteger | -1 |
| REGION_FLAG_ALLOW_DAMAGE | integer | 0x1 |
| REGION_FLAG_ALLOW_DIRECT_TELEPORT | integer | 0x100000 |
| REGION_FLAG_BLOCK_FLY | integer | 0x80000 |
| REGION_FLAG_BLOCK_TERRAFORM | integer | 0x40 |
| REGION_FLAG_DISABLE_COLLISIONS | integer | 0x1000 |
| REGION_FLAG_DISABLE_PHYSICS | integer | 0x4000 |
| REGION_FLAG_FIXED_SUN | integer | 0x10 |
| REGION_FLAG_RESTRICT_PUSHOBJECT | integer | 0x400000 |
| REGION_FLAG_SANDBOX | integer | 0x100 |
| REMOTE_DATA_CHANNEL | integer | 1 |
| REMOTE_DATA_REPLY | integer | 3 |
| REMOTE_DATA_REQUEST | integer | 2 |
| RESTITUTION | integer | 4 |
| REVERSE | integer | 4 |
| REZ_ACCEL | integer | 5 |
| REZ_DAMAGE | integer | 8 |
| REZ_DAMAGE_TYPE | integer | 12 |
| REZ_FLAG_BLOCK_GRAB_OBJECT | integer | 0x0080 |
| REZ_FLAG_DIE_ON_COLLIDE | integer | 0x0008 |
| REZ_FLAG_DIE_ON_NOENTRY | integer | 0x0010 |
| REZ_FLAG_NO_COLLIDE_FAMILY | integer | 0x0040 |
| REZ_FLAG_NO_COLLIDE_OWNER | integer | 0x0020 |
| REZ_FLAG_PHANTOM | integer | 0x0004 |
| REZ_FLAG_PHYSICAL | integer | 0x0002 |
| REZ_FLAG_TEMP | integer | 0x0001 |
| REZ_FLAGS | integer | 1 |
| REZ_LOCK_AXES | integer | 11 |
| REZ_OMEGA | integer | 7 |
| REZ_PARAM | integer | 0 |
| REZ_PARAM_STRING | integer | 13 |
| REZ_POS | integer | 2 |
| REZ_ROT | integer | 3 |
| REZ_SOUND | integer | 9 |
| REZ_SOUND_COLLIDE | integer | 10 |
| REZ_VEL | integer | 4 |
| ROTATE | integer | 32 |