altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

Sync playFacialAnim native function #112

Open tastydev opened 5 years ago

tastydev commented 5 years ago

It would be nice to have the playFacialAnim native synced through altv to perform features like lipsync, for example:

if(data.talking){
    game.playFacialAnim(this.localPlayer.scriptID, "mic_chatter", "mp_facial");
}else{
    game.playFacialAnim(this.localPlayer.scriptID, "mood_normal_1", "facials@gen_male@variations@normal");
}
emcifuntik commented 4 years ago

Looks like fixed. Can you approve bug state?

Revyn112 commented 4 years ago

@emcifuntik this seems not to be fixed or i interpreted this wrong

on my local client i run game.playFacialAnim(this.localPlayer.scriptID, "mic_chatter", "mp_facial"); My Ped's mouth start moving like expected, but other players see's my mouth not moving - so it's not synced properly.

Unnvaldr commented 4 years ago

Does it happen on latest beta build #1004?

tastydev commented 4 years ago

Still have to sync it by myself

R0ckzo0r commented 4 years ago

Same here

martonp96 commented 3 years ago

Is there a difference between playFacialAnim and taskPlayAnim? I would suggest you to try taskPlayAnim instead @tastydev .

C0kkie commented 3 years ago

The difference is that with that you can only change the anim of the mouth

martonp96 commented 3 years ago

so what happens if you call taskPlayAnim with "mic_chatter", "mp_facial"?

C0kkie commented 3 years ago

The thing is then, you cant play a animation and change the anim of the mouth in the same time. If you would call taskPlayAnim with "mic_chatter", "mp_facial" then other animation would stop.

tastydev commented 3 years ago

Yes, this native is explicitly made for playing facial animations with normal/body animations concurrently, so i.e for voice solutions this will always be your way to go.