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
258 starting with “P” of 934 — the named values scripts use for flags, permissions and change events.
| Constant | Type | Value |
|---|---|---|
| PARCEL_COUNT_GROUP | integer | 2 |
| PARCEL_COUNT_OTHER | integer | 3 |
| PARCEL_COUNT_OWNER | integer | 1 |
| PARCEL_COUNT_SELECTED | integer | 4 |
| PARCEL_COUNT_TEMP | integer | 5 |
| PARCEL_COUNT_TOTAL | integer | 0 |
| PARCEL_DETAILS_ANY_AVATAR_SOUNDS | integer | 7 |
| PARCEL_DETAILS_AREA | integer | 4 |
| PARCEL_DETAILS_CLAIMDATE | integer | 10 |
| PARCEL_DETAILS_DESC | integer | 1 |
| PARCEL_DETAILS_DWELL | integer | 64 |
| PARCEL_DETAILS_FLAGS | integer | 12 |
| PARCEL_DETAILS_GEOMETRICCENTER | integer | 66 |
| PARCEL_DETAILS_GETCLAIMDATE | integer | 65 |
| PARCEL_DETAILS_GROUP | integer | 3 |
| PARCEL_DETAILS_GROUP_SOUNDS | integer | 8 |
| PARCEL_DETAILS_ID | integer | 5 |
| PARCEL_DETAILS_LANDING_LOOKAT | integer | 10 |
| PARCEL_DETAILS_LANDING_POINT | integer | 9 |
| PARCEL_DETAILS_NAME | integer | 0 |
| PARCEL_DETAILS_OWNER | integer | 2 |
| PARCEL_DETAILS_PRIM_CAPACITY | integer | 7 |
| PARCEL_DETAILS_PRIM_USED | integer | 8 |
| PARCEL_DETAILS_SCRIPT_DANGER | integer | 13 |
| PARCEL_DETAILS_SEE_AVATARS | integer | 6 |
| PARCEL_DETAILS_TP_ROUTING | integer | 11 |
| PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY | integer | 0x8000000 |
| PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS | integer | 0x4000000 |
| PARCEL_FLAG_ALLOW_CREATE_OBJECTS | integer | 0x40 |
| PARCEL_FLAG_ALLOW_DAMAGE | integer | 0x20 |
| PARCEL_FLAG_ALLOW_FLY | integer | 0x1 |
| PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY | integer | 0x10000000 |
| PARCEL_FLAG_ALLOW_GROUP_SCRIPTS | integer | 0x2000000 |
| PARCEL_FLAG_ALLOW_LANDMARK | integer | 0x8 |
| PARCEL_FLAG_ALLOW_SCRIPTS | integer | 0x2 |
| PARCEL_FLAG_ALLOW_TERRAFORM | integer | 0x10 |
| PARCEL_FLAG_LOCAL_SOUND_ONLY | integer | 0x8000 |
| PARCEL_FLAG_RESTRICT_PUSHOBJECT | integer | 0x200000 |
| PARCEL_FLAG_USE_ACCESS_GROUP | integer | 0x100 |
| PARCEL_FLAG_USE_ACCESS_LIST | integer | 0x200 |
| PARCEL_FLAG_USE_BAN_LIST | integer | 0x400 |
| PARCEL_FLAG_USE_LAND_PASS_LIST | integer | 0x800 |
| PARCEL_MEDIA_COMMAND_AGENT | integer | 7 |
| PARCEL_MEDIA_COMMAND_AUTO_ALIGN | integer | 9 |
| PARCEL_MEDIA_COMMAND_DESC | integer | 12 |
| PARCEL_MEDIA_COMMAND_LOOP | integer | 3 |
| PARCEL_MEDIA_COMMAND_PAUSE | integer | 1 |
| PARCEL_MEDIA_COMMAND_PLAY | integer | 2 |
| PARCEL_MEDIA_COMMAND_SIZE | integer | 11 |
| PARCEL_MEDIA_COMMAND_STOP | integer | 0 |
| PARCEL_MEDIA_COMMAND_TEXTURE | integer | 4 |
| PARCEL_MEDIA_COMMAND_TIME | integer | 6 |
| PARCEL_MEDIA_COMMAND_TYPE | integer | 10 |
| PARCEL_MEDIA_COMMAND_UNLOAD | integer | 8 |
| PARCEL_MEDIA_COMMAND_URL | integer | 5 |
| PASSIVE | integer | 4 |
| PAY_DEFAULT | LSLInteger | -2 |
| PAY_HIDE | LSLInteger | -1 |
| PERM_ALL | integer | 0x7fffffff |
| PERM_COPY | integer | 0x8000 |
| PERM_MODIFY | integer | 0x4000 |
| PERM_MOVE | integer | 0x80000 |
| PERM_TRANSFER | integer | 0x2000 |
| PERMISSION_ATTACH | integer | 0x20 |
| PERMISSION_CHANGE_JOINTS | integer | 0x100 |
| PERMISSION_CHANGE_LINKS | integer | 0x80 |
| PERMISSION_CHANGE_PERMISSIONS | integer | 0x200 |
| PERMISSION_CONTROL_CAMERA | integer | 0x800 |
| PERMISSION_DEBIT | integer | 0x02 |
| PERMISSION_OVERRIDE_ANIMATIONS | integer | 0x8000 |
| PERMISSION_RELEASE_OWNERSHIP | integer | 0x40 |
| PERMISSION_REMAP_CONTROLS | integer | 0x08 |
| PERMISSION_RETURN_OBJECTS | integer | 0x10000 |
| PERMISSION_SILENT_ESTATE_MANAGEMENT | integer | 0x4000 |
| PERMISSION_TAKE_CONTROLS | integer | 0x04 |
| PERMISSION_TELEPORT | integer | 0x1000 |
| PERMISSION_TRACK_CAMERA | integer | 0x400 |
| PERMISSION_TRIGGER_ANIMATION | integer | 0x010 |
| PI | float | 3.14159274f |
| PI_BY_TWO | float | 1.57079637f |
| PING_PONG | integer | 8 |
| PRIM_ALLOW_UNSIT | integer | 39 |
| PRIM_ALPHA_MODE | integer | 38 |
| PRIM_ALPHA_MODE_BLEND | integer | 1 |
| PRIM_ALPHA_MODE_EMISSIVE | integer | 3 |
| PRIM_ALPHA_MODE_MASK | integer | 2 |
| PRIM_ALPHA_MODE_NONE | integer | 0 |
| PRIM_BUMP_BARK | integer | 4 |
| PRIM_BUMP_BLOBS | integer | 12 |
| PRIM_BUMP_BRICKS | integer | 5 |
| PRIM_BUMP_BRIGHT | integer | 1 |
| PRIM_BUMP_CHECKER | integer | 6 |
| PRIM_BUMP_CONCRETE | integer | 7 |
| PRIM_BUMP_DARK | integer | 2 |
| PRIM_BUMP_DISKS | integer | 10 |
| PRIM_BUMP_GRAVEL | integer | 11 |
| PRIM_BUMP_LARGETILE | integer | 14 |
| PRIM_BUMP_NONE | integer | 0 |
| PRIM_BUMP_SHINY | integer | 19 |
| PRIM_BUMP_SIDING | integer | 13 |
| PRIM_BUMP_STONE | integer | 9 |
| PRIM_BUMP_STUCCO | integer | 15 |
| PRIM_BUMP_SUCTION | integer | 16 |
| PRIM_BUMP_TILE | integer | 8 |
| PRIM_BUMP_WEAVE | integer | 17 |
| PRIM_BUMP_WOOD | integer | 3 |
| PRIM_CAST_SHADOWS | integer | 24 |
| PRIM_COLOR | integer | 18 |
| PRIM_DESC | integer | 28 |
| PRIM_FLEXIBLE | integer | 21 |
| PRIM_FULLBRIGHT | integer | 20 |
| PRIM_GLOW | integer | 25 |
| PRIM_GLTF_BASE_COLOR | integer | 48 |
| PRIM_GLTF_EMISSIVE | integer | 46 |
| PRIM_GLTF_METALLIC_ROUGHNESS | integer | 47 |
| PRIM_GLTF_NORMAL | integer | 45 |
| PRIM_HOLE_CIRCLE | integer | 16 |
| PRIM_HOLE_DEFAULT | integer | 0 |
| PRIM_HOLE_SQUARE | integer | 32 |
| PRIM_HOLE_TRIANGLE | integer | 48 |
| PRIM_LINK_TARGET | integer | 34 |
| PRIM_MATERIAL | integer | 2 |
| PRIM_MATERIAL_FLESH | integer | 4 |
| PRIM_MATERIAL_GLASS | integer | 2 |
| PRIM_MATERIAL_LIGHT | integer | 7 |
| PRIM_MATERIAL_METAL | integer | 1 |
| PRIM_MATERIAL_PLASTIC | integer | 5 |
| PRIM_MATERIAL_RUBBER | integer | 6 |
| PRIM_MATERIAL_STONE | integer | 0 |
| PRIM_MATERIAL_WOOD | integer | 3 |
| PRIM_MEDIA_ALT_IMAGE_ENABLE | integer | 0 |
| PRIM_MEDIA_AUTO_LOOP | integer | 4 |
| PRIM_MEDIA_AUTO_PLAY | integer | 5 |
| PRIM_MEDIA_AUTO_SCALE | integer | 6 |
| PRIM_MEDIA_AUTO_ZOOM | integer | 7 |
| PRIM_MEDIA_CONTROLS | integer | 1 |
| PRIM_MEDIA_CONTROLS_MINI | integer | 1 |
| PRIM_MEDIA_CONTROLS_STANDARD | integer | 0 |
| PRIM_MEDIA_CURRENT_URL | integer | 2 |
| PRIM_MEDIA_FIRST_CLICK_INTERACT | integer | 8 |
| PRIM_MEDIA_HEIGHT_PIXELS | integer | 10 |
| PRIM_MEDIA_HOME_URL | integer | 3 |
| PRIM_MEDIA_PERM_ANYONE | integer | 4 |
| PRIM_MEDIA_PERM_GROUP | integer | 2 |
| PRIM_MEDIA_PERM_NONE | integer | 0 |
| PRIM_MEDIA_PERM_OWNER | integer | 1 |
| PRIM_MEDIA_PERMS_CONTROL | integer | 14 |
| PRIM_MEDIA_PERMS_INTERACT | integer | 13 |
| PRIM_MEDIA_WHITELIST | integer | 12 |
| PRIM_MEDIA_WHITELIST_ENABLE | integer | 11 |
| PRIM_MEDIA_WIDTH_PIXELS | integer | 9 |
| PRIM_NAME | integer | 27 |
| PRIM_NORMAL | integer | 37 |
| PRIM_OMEGA | integer | 32 |
| PRIM_PHANTOM | integer | 5 |
| PRIM_PHYSICS | integer | 3 |
| PRIM_PHYSICS_MATERIAL | integer | 31 |
| PRIM_PHYSICS_SHAPE_CONVEX | integer | 2 |
| PRIM_PHYSICS_SHAPE_NONE | integer | 1 |
| PRIM_PHYSICS_SHAPE_PRIM | integer | 0 |
| PRIM_PHYSICS_SHAPE_TYPE | integer | 30 |
| PRIM_POINT_LIGHT | integer | 23 |
| PRIM_POS_LOCAL | integer | 33 |
| PRIM_POSITION | integer | 6 |
| PRIM_PROJECTOR | integer | 42 |
| PRIM_REFLECTION_PROBE | integer | 44 |
| PRIM_REFLECTION_PROBE_BOX | integer | 1 |
| PRIM_REFLECTION_PROBE_DYNAMIC | integer | 2 |
| PRIM_REFLECTION_PROBE_MIRROR | integer | 4 |
| PRIM_RENDER_MATERIAL | integer | 49 |
| PRIM_ROT_LOCAL | integer | 29 |
| PRIM_ROTATION | integer | 8 |
| PRIM_SCRIPTED_SIT_ONLY | integer | 40 |
| PRIM_SCULPT_FLAG_ANIMESH | integer | 0x20 |
| PRIM_SCULPT_FLAG_INVERT | integer | 0x40 |
| PRIM_SCULPT_FLAG_MIRROR | integer | 0x80 |
| PRIM_SCULPT_TYPE_CYLINDER | integer | 4 |
| PRIM_SCULPT_TYPE_MASK | integer | 0x07 |
| PRIM_SCULPT_TYPE_MESH | integer | 5 |
| PRIM_SCULPT_TYPE_PLANE | integer | 3 |
| PRIM_SCULPT_TYPE_SPHERE | integer | 1 |
| PRIM_SCULPT_TYPE_TORUS | integer | 2 |
| PRIM_SHINY_HIGH | integer | 3 |
| PRIM_SHINY_LOW | integer | 1 |
| PRIM_SHINY_MEDIUM | integer | 2 |
| PRIM_SHINY_NONE | integer | 0 |
| PRIM_SIT_TARGET | integer | 41 |
| PRIM_SIZE | integer | 7 |
| PRIM_SLICE | integer | 35 |
| PRIM_SPECULAR | integer | 36 |
| PRIM_TEMP_ON_REZ | integer | 4 |
| PRIM_TEXGEN | integer | 22 |
| PRIM_TEXGEN_DEFAULT | integer | 0 |
| PRIM_TEXGEN_PLANAR | integer | 1 |
| PRIM_TEXT | integer | 26 |
| PRIM_TEXTURE | integer | 17 |
| PRIM_TYPE | integer | 9 |
| PRIM_TYPE_BOX | integer | 0 |
| PRIM_TYPE_CYLINDER | integer | 1 |
| PRIM_TYPE_PRISM | integer | 2 |
| PRIM_TYPE_RING | integer | 6 |
| PRIM_TYPE_SCULPT | integer | 7 |
| PRIM_TYPE_SPHERE | integer | 3 |
| PRIM_TYPE_TORUS | integer | 4 |
| PRIM_TYPE_TUBE | integer | 5 |
| PROFILE_NONE | integer | 0 |
| PROFILE_SCRIPT_MEMORY | integer | 1 |
| PSYS_PART_BF_DEST_COLOR | integer | 2 |
| PSYS_PART_BF_ONE | integer | 0 |
| PSYS_PART_BF_ONE_MINUS_DEST_COLOR | integer | 4 |
| PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA | integer | 9 |
| PSYS_PART_BF_ONE_MINUS_SOURCE_COLOR | integer | 5 |
| PSYS_PART_BF_SOURCE_ALPHA | integer | 7 |
| PSYS_PART_BF_SOURCE_COLOR | integer | 3 |
| PSYS_PART_BF_ZERO | integer | 1 |
| PSYS_PART_BLEND_FUNC_DEST | integer | 25 |
| PSYS_PART_BLEND_FUNC_SOURCE | integer | 24 |
| PSYS_PART_BOUNCE_MASK | integer | 4 |
| PSYS_PART_EMISSIVE_MASK | integer | 256 |
| PSYS_PART_END_ALPHA | integer | 4 |
| PSYS_PART_END_COLOR | integer | 3 |
| PSYS_PART_END_GLOW | integer | 27 |
| PSYS_PART_END_SCALE | integer | 6 |
| PSYS_PART_FLAGS | integer | 0 |
| PSYS_PART_FOLLOW_SRC_MASK | integer | 16 |
| PSYS_PART_FOLLOW_VELOCITY_MASK | integer | 32 |
| PSYS_PART_INTERP_COLOR_MASK | integer | 1 |
| PSYS_PART_INTERP_SCALE_MASK | integer | 2 |
| PSYS_PART_MAX_AGE | integer | 7 |
| PSYS_PART_RIBBON_MASK | integer | 1024 |
| PSYS_PART_START_ALPHA | integer | 2 |
| PSYS_PART_START_COLOR | integer | 1 |
| PSYS_PART_START_GLOW | integer | 26 |
| PSYS_PART_START_SCALE | integer | 5 |
| PSYS_PART_TARGET_LINEAR_MASK | integer | 128 |
| PSYS_PART_TARGET_POS_MASK | integer | 64 |
| PSYS_PART_WIND_MASK | integer | 8 |
| PSYS_SRC_ACCEL | integer | 8 |
| PSYS_SRC_ANGLE_BEGIN | integer | 22 |
| PSYS_SRC_ANGLE_END | integer | 23 |
| PSYS_SRC_BURST_PART_COUNT | integer | 15 |
| PSYS_SRC_BURST_RADIUS | integer | 16 |
| PSYS_SRC_BURST_RATE | integer | 13 |
| PSYS_SRC_BURST_SPEED_MAX | integer | 18 |
| PSYS_SRC_BURST_SPEED_MIN | integer | 17 |
| PSYS_SRC_INNERANGLE | integer | 10 |
| PSYS_SRC_MAX_AGE | integer | 19 |
| PSYS_SRC_OMEGA | integer | 21 |
| PSYS_SRC_OUTERANGLE | integer | 11 |
| PSYS_SRC_PATTERN | integer | 9 |
| PSYS_SRC_PATTERN_ANGLE | integer | 4 |
| PSYS_SRC_PATTERN_ANGLE_CONE | integer | 8 |
| PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY | integer | 16 |
| PSYS_SRC_PATTERN_DROP | integer | 1 |
| PSYS_SRC_PATTERN_EXPLODE | integer | 2 |
| PSYS_SRC_TARGET_KEY | integer | 20 |
| PSYS_SRC_TEXTURE | integer | 12 |
| PUBLIC_CHANNEL | integer | 0x00000000 |