Set Primitive Flags

18 August 2015

  • Release 8.42 - added.
setprimitiveflags (Commands)
TypeCorrade progressive command
Commandsetprimitiveflags
DescriptionCorrade can alter existing in-world primitives' flags by using the setprimitiveflags command.
Permissionsinteract
Parametersgroup, password, item
Last ChangesRelease 8.42 - added.

Corrade can alter existing in-world primitives' flags by using the setprimitiveflags command.

Command Required Parameters Required Corrade Permissions Example
setprimitiveflags group, password, item interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // turn on physics for a primitive
            // named "Ball" in a 2m range
            "command", "setprimitiveflags",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "Ball",
            "range", 2,
            "physics", "True"
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
temporary True or False Whether the object is temporary.
shadows True or False Whether the object casts shadows.
restitution Single The primitive's restitution.
phantom True or False Whether the primitive is a phantom.
friction Single The fiction of the primitive.
density Single The density of the primitive.

Since the parameters are all optional, when some parameters are not supplied, the already existing values take effect.


secondlife/scripted_agents/corrade/api/progressive/commands/setprimitiveflags.txt ยท Last modified: 2017/02/22 18:29 (external edit)

Access website using Tor


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