“LlGetAnimationOverride”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: string llGetAnimationOverride( string anim_state ) |参数…”) |
|||
第4行: | 第4行: | ||
{{函数详情 | {{函数详情 | ||
|函数名 = Function: string llGetAnimationOverride( string anim_state ) | |函数名 = Function: string llGetAnimationOverride( string anim_state ) | ||
− | |参数= 参数:string | + | |参数= 参数:string anim_state–动画状态 |
|返回值= 返回值:返回一个字符串,它是用于指定动画状态(anim_state)的动画名称。 | |返回值= 返回值:返回一个字符串,它是用于指定动画状态(anim_state)的动画名称。 | ||
2021年8月29日 (日) 02:40的最新版本
首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
函数名 |
---|
Function: string llGetAnimationOverride( string anim_state ) |
参数:string anim_state–动画状态 |
返回值:返回一个字符串,它是用于指定动画状态(anim_state)的动画名称。 |
注意事项 |
---|
权限
|
示例 |
---|
示例1
// llGetAnimationOverride Example // A Script to check the animation Stats on // all available overridable animations. // By Kanashio Koroshi and Pedro Oval default { state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_OVERRIDE_ANIMATIONS); } run_time_permissions(integer permissions) { if (permissions & PERMISSION_OVERRIDE_ANIMATIONS) { llOwnerSay("Listing Overridden Animations"); llOwnerSay("Crouching: " + llGetAnimationOverride("Crouching")); llOwnerSay("CrouchWalking: " + llGetAnimationOverride("CrouchWalking")); llOwnerSay("Falling Down: " + llGetAnimationOverride("Falling Down")); llOwnerSay("Flying: " + llGetAnimationOverride("Flying")); llOwnerSay("FlyingSlow: " + llGetAnimationOverride("FlyingSlow")); llOwnerSay("Hovering: " + llGetAnimationOverride("Hovering")); llOwnerSay("Hovering Down: " + llGetAnimationOverride("Hovering Down")); llOwnerSay("Hovering Up: " + llGetAnimationOverride("Hovering Up")); llOwnerSay("Jumping: " + llGetAnimationOverride("Jumping")); llOwnerSay("Landing: " + llGetAnimationOverride("Landing")); llOwnerSay("PreJumping: " + llGetAnimationOverride("PreJumping")); llOwnerSay("Running: " + llGetAnimationOverride("Running")); llOwnerSay("Sitting: " + llGetAnimationOverride("Sitting")); llOwnerSay("Sitting on Ground: " + llGetAnimationOverride("Sitting on Ground")); llOwnerSay("Standing: " + llGetAnimationOverride("Standing")); llOwnerSay("Standing Up: " + llGetAnimationOverride("Standing Up")); llOwnerSay("Striding: " + llGetAnimationOverride("Striding")); llOwnerSay("Soft Landing: " + llGetAnimationOverride("Soft Landing")); llOwnerSay("Taking Off: " + llGetAnimationOverride("Taking Off")); llOwnerSay("Turning Left: " + llGetAnimationOverride("Turning Left")); llOwnerSay("Turning Right: " + llGetAnimationOverride("Turning Right")); llOwnerSay("Walking: " + llGetAnimationOverride("Walking")); } } } |
相关函数 |
---|
llGetPermissions—获得授予的权限
llGetPermissionsKey—获取授予权限的代理 llRequestPermissions—请求权限 llSetAnimationOverride llResetAnimationOverride |
相关事件 |
---|
run_time_permissions—权限接收事件 |