31 July 2019
selection
optional parameter.18 August 2015
setprimitiveflags (Commands) | |
---|---|
Type | Corrade progressive command |
Command | setprimitiveflags |
Description | Corrade can alter existing in-world primitives' flags by using the setprimitiveflags command. |
Permissions | interact |
Parameters | group , password , item |
Last Changes | Release 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 ![]() ![]() | The object density. |
friction | A float value (default ![]() | The object friction. |
restitution | A float value (default ![]() | The object restitution (bounciness). |
gravity | A float value (default ![]() | 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.
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.