18 August 2015

Corrade can create a Linden tree by using the createtree command.

CommandRequired ParametersRequired Corrade PermissionsExample
createtreegroup, password, position, typeinteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "createtree",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // create the tree at the same location
            // as the primitive that contains this
            // script
            "position", wasURLEscape(
                (string)llGetPos()
            ),
            // create an oak tree
            "type", "Oak"
        ]
    )
);

Type is one of the tree types of the Tree enumeration.

Optional ParameterPossible ValueDescription
rangeA range in meters.The spherical distance from Corrade in which to locate the item.
rotationA rotation in quaternions.The primitive rotation. If not specified, the primitive will have a zero rotation.
regionA region name.The region where to create the primitive. If not specified, the primitive will be created in the local simulator.
scaleA vector describing the scale of the primitive to create.The size of the the primitive to create. If not specified the primitive will be scaled to $0.5m$ on all three axes.