ffzero58 Posted June 10, 2015 Share Posted June 10, 2015 I've been testing this on and off - the end result I'd like to arrive at is to allow the playerped to retain control while playing and animation (or during some task). I know this is being actively being researched by some mod authors but hopefully we can gather what we found and find a way. Currently, these are the known behaviors I've found: - When the playerPed is given TASK_PLAY_ANIM or SCENARIO, all control is lost (keyboard or controller input). Occurs when walking or driving. This is frustrating as I just want to use facial, head, arm/hand animations and even this causes loss of all control. - During auto driving tasks, playing an ANIM will cause the car to lose auto drive and no control from player I think I saw a mod that allowed an anim to be played but kept control - I think it was the telekinesis mod (not sure where it is now). Any insights welcome! Link to comment Share on other sites More sharing options...
FixingG00D Posted June 10, 2015 Share Posted June 10, 2015 Are scenarios completly different thing from play animations? Is a scenario where animations (enter, base, exit, idle a, idle b) are stringed together, timed and associated props / environment detection takes place? e.g repair vehicle scenario. Do these still use anims from animation dictionary? Curious to know if player object detection is possible, so they can sit on seating objects around the environment e.g chair at a cafe like peds do. I find it annoying that when using mods to play an animation isolated (assuming this to be TASK_PLAY_ANIM), that you have no control while it is performed. Seen this with the walking animations that just auto move player forwards. As to your question, not sure i can help, but i do remember seeing a comment where someone requested this feature and said TransmetTeamTrainer somehow (perhaps by accident) allowed you to move or rotate your player while animations played. I can't say if this is correct, but maybe worth asking Transmet dev for confirmation. Someone else pointed out, and i checked this too, that some animations can play, while allowing you to get your phone out. Think this might apply to walking animations. I definitely recall the other day doing this while playing an anim from a dict via actor manager mod. Link to comment Share on other sites More sharing options...
ffzero58 Posted June 11, 2015 Author Share Posted June 11, 2015 Answers in bold: Are scenarios completly different thing from play animations? Is a scenario where animations (enter, base, exit, idle a, idle b) are stringed together, timed and associated props / environment detection takes place? e.g repair vehicle scenario. While not completely different, you are correct that they are "scripted". Do these still use anims from animation dictionary? No anim_dicts are ever called. For example: AI.CLEAR_PED_TASKS(playerPed) AI.TASK_START_SCENARIO_IN_PLACE(playerPed, scene, 0, true) Curious to know if player object detection is possible, so they can sit on seating objects around the environment e.g chair at a cafe like peds do. Yes, it is possible but some scripting is required - I think. I did not go through all of the native functions but I did not find a sitting one specifically. I find it annoying that when using mods to play an animation isolated (assuming this to be TASK_PLAY_ANIM), that you have no control while it is performed. Seen this with the walking animations that just auto move player forwards. As to your question, not sure i can help, but i do remember seeing a comment where someone requested this feature and said TransmetTeamTrainer somehow (perhaps by accident) allowed you to move or rotate your player while animations played. I can't say if this is correct, but maybe worth asking Transmet dev for confirmation. Someone else pointed out, and i checked this too, that some animations can play, while allowing you to get your phone out. Think this might apply to walking animations. I definitely recall the other day doing this while playing an anim from a dict via actor manager mod. That is the hope. Like facial animations - why can't they be isolated from the user? I see PLAY_FACIAL_ANIM but I have not had a chance to play with this yet. Busy week. Link to comment Share on other sites More sharing options...
Vrock_wave Posted June 11, 2015 Share Posted June 11, 2015 (edited) if I understand you want to play the animation and move? it is possible with commando AI.TASK_PLAY_ANIM(PLAYER.PLAYER_PED_ID(), "missheist_agency3aig_18", "say_hurry_up_d", 2.0, -2.0, -1, 48, 0, true, false, true); 7 parameter in the command gives the variations of playing the animation, you have to find the right for myself, I checked the numbers from 0 to 100 If you put the number (48) while playing the animation you get animation torso and legs can follow any responses to walk freely are not involved in animation Number plays a lot of different example is a loop or a sharp loop or even freeze in a pose after a few seconds, etc. for facial animation playback, use this PED.PLAY_FACIAL_ANIM(PLAYER.PLAYER_PED_ID(), "0239_3_mini_8_3_face", "[email protected][email protected][email protected]@"); example in the video I just go and play the animation for a player: https://www.youtube.com/watch?v=pXQUwffkSLo https://www.youtube.com/watch?v=WavVn3uQEGI Edited June 11, 2015 by Vrock_wave ChOcOsKiZo, NModds, ffzero58 and 1 other 4 Link to comment Share on other sites More sharing options...
sodanakin Posted June 12, 2015 Share Posted June 12, 2015 Learning something everyday thanks Vrock-Wave ! Have you possibly listed the 100 you tried ? Would be very helpful with setting up anims! . Link to comment Share on other sites More sharing options...
Vrock_wave Posted June 12, 2015 Share Posted June 12, 2015 (edited) Learning something everyday thanks Vrock-Wave ! Have you possibly listed the 100 you tried ? Would be very helpful with setting up anims! . the most important for me: 2 fall asleep in the middle of the anima as a statue 3 repetition of the initial chunk of the animation 5 full repetition of animation 8 smooth transition to the idle animations 9 repetition of animation with a smooth transition between animations 10 soft transitions and poses zameranie 16 feet from the turn off the animation they are not controlled 17 repetition of animation to disconnect the legs are not controlled 18 freeze in a pose but breathe naturally 19 repetition of animation without legs smoothly 32 legs get a little animation and torso repetition of animation 32 does not move but you can get the animation to shoot 33 repetition of the animation and you can shoot 34 freeze completely and shoot leg work but then you can not go 35 repetition of animation with smooth transition 36 legs and torso torso animation then just a repetition of animation 40 with the possibility of a repetition of the animation to fire if the animation is reset 48-49 with the possibility of a repetition of the animation walk 50 freeze animation with the ability to walk 52 once smoothly with the ability to walk better check yourself to see how it works Edited June 12, 2015 by Vrock_wave Link to comment Share on other sites More sharing options...
sodanakin Posted June 13, 2015 Share Posted June 13, 2015 Learning something everyday thanks Vrock-Wave ! Have you possibly listed the 100 you tried ? Would be very helpful with setting up anims! . the most important for me: 2 fall asleep in the middle of the anima as a statue 3 repetition of the initial chunk of the animation 5 full repetition of animation 8 smooth transition to the idle animations 9 repetition of animation with a smooth transition between animations 10 soft transitions and poses zameranie 16 feet from the turn off the animation they are not controlled 17 repetition of animation to disconnect the legs are not controlled 18 freeze in a pose but breathe naturally 19 repetition of animation without legs smoothly 32 legs get a little animation and torso repetition of animation 32 does not move but you can get the animation to shoot 33 repetition of the animation and you can shoot 34 freeze completely and shoot leg work but then you can not go 35 repetition of animation with smooth transition 36 legs and torso torso animation then just a repetition of animation 40 with the possibility of a repetition of the animation to fire if the animation is reset 48-49 with the possibility of a repetition of the animation walk 50 freeze animation with the ability to walk 52 once smoothly with the ability to walk better check yourself to see how it works Very nice! I will ! Theres quite some helpful ones between there! 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