Difference between revisions of "LlCollisionSprite"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=161|func_sleep=0.0|func_energy=10.0
|cat4=Broken
|sort=CollisionSprite
|inject-1=
|func=llCollisionSprite|p1_type=string|p1_name=impact_sprite
{{LSL_Function/warning|Broken Feature|[[#VWR-322|VWR-322]] reports this function as broken.}}
|func_footnote
|inject-2=
|func_desc=Suppress default collision sprites, replace default impact sprite with impact_sprite (empty string to just suppress)
{{LSL_Function/inventory|impact_sprite|type=texture|uuid=true|empty=*}}
{{Issues|VWR-322|[[llCollisionSprite]] broken in newer releases.|type=bug}}
|func_id=161|func_sleep=0.0|func_energy=10.0|func=llCollisionSprite|p1_type=string|p1_name=impact_sprite
|func_desc=Suppress default collision sprites, replace default impact sprite with {{LSLP|impact_sprite}}
|func_footnote=To suppress the collision sprite all together, just use an empty string as the value for {{LSLP|impact_sprite}}
|return_text
|return_text
|spec
|spec
Line 11: Line 15:
|examples
|examples
|helpers
|helpers
|also_functions
|also_functions=
|also_events
{{LSL DefineRow||[[llCollisionFilter]]|}}
{{LSL DefineRow||[[llCollisionSound]]|}}
|also_events=
{{LSL DefineRow||[[collision_start]]|}}
{{LSL DefineRow||[[collision]]|}}
{{LSL DefineRow||[[collision_end]]|}}
|also_articles
|also_articles
|notes
|notes
|permission
|permission
|cat1=Collision
|cat2=Object
|cat3
|cat4
|haiku={{Haiku|I forgot the bread.|The little saucer of milk.|They visit me no more.}}
|history={{LSL Added|0.2.0|remote=http://secondlife.wikia.com/wiki/Version_0.2.0}}
{{LSLH|Broken|year=2007}} {{JIRA|VWR-322}}
}}
}}
{{LSLC|Stub|CollisionSprite}}

Latest revision as of 12:58, 16 May 2015

Emblem-important-red.png Broken Feature Warning!

VWR-322 reports this function as broken.

Summary

Function: llCollisionSprite( string impact_sprite );
0.0 Forced Delay
10.0 Energy

Suppress default collision sprites, replace default impact sprite with impact_sprite

• string impact_sprite a texture in the inventory of the prim this script is in, a UUID of a texture or an empty string

To suppress the collision sprite all together, just use an empty string as the value for impact_sprite

Caveats

  • If impact_sprite is not an empty string and...
    • impact_sprite is missing from the prim's inventory and it is not a UUID or it is not a texture then an error is shouted on DEBUG_CHANNEL.
  • If impact_sprite is a UUID then there are no new asset permissions consequences for the object.
    • The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.

Examples

See Also

Events

•  collision_start
•  collision
•  collision_end

Functions

•  llCollisionFilter
•  llCollisionSound

Deep Notes

History

Footnotes

  1. ^ Early release notes were not very accurate or thorough, they sometimes included information about features added in previous releases or failed to include information about features added in that release.

Signature

function void llCollisionSprite( string impact_sprite );

Haiku

I forgot the bread.
The little saucer of milk.
They visit me no more.