Difference between revisions of "LlGetAnimationOverride"

From Second Life Wiki
Jump to: navigation, search
m (Created page with "{{LSL_Function |inject-2= {{LSL_Function/permission|PERMISSION_OVERRIDE_ANIMATIONS|PERMISSION_TRIGGER_ANIMATION}} |func_id=?|func_sleep=0.0|func_energy=? |func=llGetAnimationOver…")
 
Line 3: Line 3:
 
{{LSL_Function/permission|PERMISSION_OVERRIDE_ANIMATIONS|PERMISSION_TRIGGER_ANIMATION}}
 
{{LSL_Function/permission|PERMISSION_OVERRIDE_ANIMATIONS|PERMISSION_TRIGGER_ANIMATION}}
 
|func_id=?|func_sleep=0.0|func_energy=?
 
|func_id=?|func_sleep=0.0|func_energy=?
|func=llGetAnimationOverride|sort=SetAnimationOverride
+
|func=llGetAnimationOverride|sort=GetAnimationOverride
 
|p1_type=string|p1_name=anim_state|p1_desc=animation state
 
|p1_type=string|p1_name=anim_state|p1_desc=animation state
 
|func_footnote
 
|func_footnote

Revision as of 22:10, 25 March 2013

Summary

Function: string llGetAnimationOverride( string anim_state );

Returns a string that is the name of the animation that is being used for the specified animation state (anim_state).

• string anim_state animation state

To run this function the script must request the PERMISSION_OVERRIDE_ANIMATIONS or PERMISSION_TRIGGER_ANIMATION permission with llRequestPermissions.

Caveats

Permissions
  • Once the PERMISSION_OVERRIDE_ANIMATIONS permission is granted there may be no way to revoke it except from inside the script (for example, with a new llRequestPermissions call) or if the script is reset. Furthermore even if the script loses the permission (or is derezzed), it will not reset/revert the overridable animations.
    • For Viewer 3.6.7 and up: If the object is not attached to the permission granter but is in the same region, then Me>Movement>Stop Animating Me will revoke both PERMISSION_TRIGGER_ANIMATION and PERMISSION_OVERRIDE_ANIMATIONS (other permissions will remain). In this case, overrides are reset.
  • Once the PERMISSION_TRIGGER_ANIMATION permission is granted there may be no way to revoke it except from inside the script (for example, with a new llRequestPermissions call) or if the script is reset.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Events

•  run_time_permissions Permission receiving event

Functions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
•  llSetAnimationOverride
•  llResetAnimationOverride

Articles

•  Script permissions
•  Internal_Animations lists internal Animations always available

Deep Notes

Search JIRA for related Issues

Signature

function string llGetAnimationOverride( string anim_state );