Set Primitive Flags

31 July 2019

  • C10 - added the selection optional parameter.

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 - this is deprecated and does nothing.
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.
physics True or False Whether the object has physics enabled.
type One of PhysicsShapeType. The physics shape.
density A float value (default $1000$ - measured in $100\frac{kg}{m^3}$). The object density.
friction A float value (default $0.6$). The object friction.
restitution A float value (default $0.5$). The object restitution (bounciness).
gravity A float value (default $1$ - representing a gravity multiplier). The object gravity multiplier.
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.

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

Notes


secondlife/scripted_agents/corrade/api/commands/setprimitiveflags.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

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


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