Kieran_S Posted February 13, 2021 Share Posted February 13, 2021 Hi, I have been messing about with animations for ages now trying to get a ped to sit on a bench. I figured out the ones I want to use but I can not get them to work I had tried "GroupMember1.Task.PlayAnimation("[email protected]@bench", "bench_on_phone_idle", 1, 60000000, AnimationFlags.CancelableWithMovement);" and it worked but only for a second or 2. If anyone is any good with animations some help would be great. Thanks. Link to comment Share on other sites More sharing options...
LeeC22 Posted February 13, 2021 Share Posted February 13, 2021 (edited) 14 minutes ago, Kieran_S said: Hi, I have been messing about with animations for ages now trying to get a ped to sit on a bench. I figured out the ones I want to use but I can not get them to work I had tried "GroupMember1.Task.PlayAnimation("[email protected]@bench", "bench_on_phone_idle", 1, 60000000, AnimationFlags.CancelableWithMovement);" and it worked but only for a second or 2. If anyone is any good with animations some help would be great. Thanks. Specify a duration of -1 to make things happen until you cancel or change them. These flags might also be useful, courtesy of julionNib normal = 0 repeat = 1 stop_last_frame = 2 unk1 = 4 unk2_air = 8 upperbody = 16 enablePlCtrl = 32 unk3 = 64 cancelable = 128 unk4_creature = 256 unk5_freezePos = 512 unk6_rot90 = 1024 Edited February 13, 2021 by LeeC22 Link to comment Share on other sites More sharing options...
Kieran_S Posted February 13, 2021 Author Share Posted February 13, 2021 6 minutes ago, LeeC22 said: Specify a duration of -1 to make things happen until you cancel or change them. These flags might also be useful, courtesy of julionNib normal = 0 repeat = 1 stop_last_frame = 2 unk1 = 4 unk2_air = 8 upperbody = 16 enablePlCtrl = 32 unk3 = 64 cancelable = 128 unk4_creature = 256 unk5_freezePos = 512 unk6_rot90 = 1024 Ah, nice one. Thanks for these. Knowing it had to be -1 really helped lol. It now works... finally! haha. Thanks for the help tho. LeeC22 1 Link to comment Share on other sites More sharing options...
Kieran_S Posted February 13, 2021 Author Share Posted February 13, 2021 17 minutes ago, LeeC22 said: Specify a duration of -1 to make things happen until you cancel or change them. These flags might also be useful, courtesy of julionNib normal = 0 repeat = 1 stop_last_frame = 2 unk1 = 4 unk2_air = 8 upperbody = 16 enablePlCtrl = 32 unk3 = 64 cancelable = 128 unk4_creature = 256 unk5_freezePos = 512 unk6_rot90 = 1024 Looking at this some more, I have 1 more question. What does unk mean? Sorry for leaving it later. Link to comment Share on other sites More sharing options...
LeeC22 Posted February 13, 2021 Share Posted February 13, 2021 9 minutes ago, Kieran_S said: Looking at this some more, I have 1 more question. What does unk mean? Sorry for leaving it later. unk = unknown, it means nobody has worked out what that does yet. Link to comment Share on other sites More sharing options...
Kieran_S Posted February 13, 2021 Author Share Posted February 13, 2021 44 minutes ago, LeeC22 said: unk = unknown, it means nobody has worked out what that does yet. Ah OK, thanks for letting me know. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now