20 August 2015

The getprimitivebodytypes command can be used to retrieve the set of currently supported body types that can be passed to the type parameter of the createprimitive and setprimitiveshape commands.

CommandRequired ParametersRequired Corrade PermissionsExample
getprimitivebodytypesgroup, passwordinteract
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "getprimitivebodytypes",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "callback", wasURLEscape(URL)
        ]
    )
);

The command returns a CSV list of body types.