View Issue Details

IDProjectCategoryView StatusLast Update
0008432New Feature Requests[All Projects] Generalpublic2017-06-18 20:57
ReporterGrafuAssigned To 
PrioritylowSeverityfeatureReproducibilityalways
Status newResolutionopen 
Platform64-bitOSWindowsOS Version8.1 Pro
Summary0008432: [Request] Animation finish events
Description

I've been looking, but surprisingly haven't found events, which would be triggered, when a ped/player animation finishes. There should be good:

• onPlayerAnimationFinish
• onClientPlayerAnimationFinish
• onPedAnimationFinish
• onClientPedAnimationFinish

Please do this, if there are easy ways to detect the action.

TagsNo tags attached.

Activities

AlexTMjugador

2014-08-07 14:52

viewer   ~~0021671

There was a function called blendPedAnimation which provided support for a callback function when a animation finished. I think it'll be a good idea to fix the bugs in that function and add it, because it provided more options to precisely control animations without having to bother about timing.

Grafu

2014-08-07 18:31

viewer   ~~0021676

Yeah, I've noticed that one, but saw it disabled - possibly due to a critical error. I don't think it will be reopened :/

AlexTMjugador

2014-08-07 23:42

viewer   ~~0021680

Me neither, but it could be a maybe faster (?) alternative to the events you suggest.

lopezloo

2014-08-08 00:29

developer   ~~0021681

Animations aren't synced so I think serverside event is currently unnecessary.

Grafu

2014-08-08 09:19

viewer   ~~0021682

But serverside setPedAnimation exists, so why do you think it's not synced?

lopezloo

2014-08-08 12:43

developer   ~~0021684

Last edited: 2014-08-08 12:46

View 2 revisions

Because serverside setPedAnimation() just apply animation and nothing more. For example spawn ped and set him anim and do reconnect. After reconnect you don't see his animation. Some of scripts/servers use element data to sync this.

I think serverside event is just unnecessary and possible via triggers with client event.

PS. getPedAnimationProgress() would be nice too.

Issue History

Date Modified Username Field Change