Recompile a Scripting within a Primitive

3 September 2020

  • C11 - added.
recompilescript (Commands)
TypeCorrade progressive command
DescriptionThe recompilescript command can be used to recompile a script within an in-world primitive.
Permissionsinventory, interact
Parametersgroup, password, item, target
Last ChangesRelease 9.164 - added.

The getprimitivescripttext command is used to retrieve the text of a script inside a primitive's (task) inventory.

Command Required Parameters Required Corrade Permissions Example
getprimitivescripttext group, password, item, target inventory, interact
            // Recompile a script named "New Script" 
            // within a primitive named "myscriptedobject" 
            "command", "recompilescript",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // The name or UUID of the script.
            "target", "New Script",
            "range", "5",
            // The in-world primitive name or UUID.
            "item", "myscriptedobject",
            "callback", wasURLEscape(URL)
Optional Parameter Possible Value Description
range an integer value The range in meters to look for the primitive to retrieve a script's text from.
selection attached, rezzed or all (default: all) Either attached, rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively.
mono True or False (default: True) Whether to recompile the script using mono.
run True or False (default: True) Whether the script should be marked as "running".
reset True or False (default: False) Whether to reset the script after compilation.


  • Scripts contained within an avatar inventory cannot be recompiled because scripts in avatar inventory do not run. If you are looking to change or create a script within the avatar's inventory, then the updatescript command is more suitable.
  • If you are looking to just retrieve the source code of an LSL script, then the getprimitivescripttext command is suitable.

secondlife/scripted_agents/corrade/api/commands/recompilescript.txt ยท Last modified: 2022/04/19 09:28 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key

For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy, copyright and the plagiarism pages.