Product Chat / [SOLVED] Player Character Animations

Author
Message
Nevin
9
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 27th Mar 2019 19:15
I tried this morning to make the 3rd person character play certain animations using code.

I tried everything I could think of before I asked for help. But it seems that the fpe overrides any code you put into your scripts.

So when I say: If player is at this point in game and standing still then, play one time animation. It does not work because the idle animation is playing from fpe.

I do have a work around. But wanted to see if anyone else found a solution first.

Thanks in advance!


The author of this post has marked a post as an answer.

Go to answer
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 27th Mar 2019 19:39
You have to disable the built in animation playing bit using CharacterControlLimbo( e ), then you can use SetAnimationFrames and PlayAnimation functions to control the animations.

Been there, done that, got all the T-Shirts!
PM
Nevin
9
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 27th Mar 2019 19:52 Edited at: 27th Mar 2019 20:44
Oh, sweet!
Nevin
9
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 27th Mar 2019 20:45 Edited at: 30th Mar 2019 16:03
This post has been marked by the post author as the answer.
Tried CharacterControlLimbo(e). Still does not work for the player. But does work for any other ai.

Fpe seems to still take over the player.

Edit: Just view GamePlayControl.lua to do what I needed to do.

Login to post a reply

Server time is: 2024-11-24 01:17:03
Your offset time is: 2024-11-24 01:17:03