|
Post by katcon1122 on Oct 8, 2019 8:19:06 GMT
I have been stuck trying to figure out how to make my character go prone when I hit the Z button on my keyboard and then proceeded to crawl while hitting my W S D A keys just like my crouch . I’m not sure where to even begin in the animator controller to even do this? Any help would be greatly appreciated.
|
|
|
Post by bender on Oct 10, 2019 14:27:17 GMT
I added a 'Slide' method a bit ago. Look in vThirdPersonController and see how the movement is implemented there. If I recall, in the Update() method there is a check for "Movement", "Jumping", etc. Add another method to the Update to check for "Prone". Also, look for the GenericInput classes and map their functionality from there. Add your own for "Prone" and trigger on that. GenericInput is a nice class, you'll also be able to remap the key.
Sorry I can't give specifics, the code is not available to me right now.
|
|
|
Post by katcon1122 on Oct 11, 2019 3:48:30 GMT
I added a 'Slide' method a bit ago. Look in vThirdPersonController and see how the movement is implemented there. If I recall, in the Update() method there is a check for "Movement", "Jumping", etc. Add another method to the Update to check for "Prone". Also, look for the GenericInput classes and map their functionality from there. Add your own for "Prone" and trigger on that. GenericInput is a nice class, you'll also be able to remap the key. Sorry I can't give specifics, the code is not available to me right now. Thanks but im still having trouble im not the best coder and dont really know how to implement this anymore help on how to do this would be great.
|
|
|
Post by gubwe on Oct 11, 2019 10:57:23 GMT
I added a 'Slide' method a bit ago. Look in vThirdPersonController and see how the movement is implemented there. If I recall, in the Update() method there is a check for "Movement", "Jumping", etc. Add another method to the Update to check for "Prone". Also, look for the GenericInput classes and map their functionality from there. Add your own for "Prone" and trigger on that. GenericInput is a nice class, you'll also be able to remap the key. Sorry I can't give specifics, the code is not available to me right now. Thanks but im still having trouble im not the best coder and dont really know how to implement this anymore help on how to do this would be great. hie. well i did it a while back but i didnt like the animations a i had and got stuck on the shooting whilst prone. Im not good at coding but i did figure it out. what i did was first create a "is prone" boolean (hope thats the right right one) in the animator then i duplicated the free crouch animation state machine and renamed them to prone and then replaced the crouching animations in there with some prone ones. from there i copied all the code that had stuff to do with crouching and basically replaced it with isprone. hopefully this makes sense
|
|
|
Post by katcon1122 on Oct 14, 2019 20:25:27 GMT
Thanks but im still having trouble im not the best coder and dont really know how to implement this anymore help on how to do this would be great. hie. well i did it a while back but i didnt like the animations a i had and got stuck on the shooting whilst prone. Im not good at coding but i did figure it out. what i did was first create a "is prone" boolean (hope thats the right right one) in the animator then i duplicated the free crouch animation state machine and renamed them to prone and then replaced the crouching animations in there with some prone ones. from there i copied all the code that had stuff to do with crouching and basically replaced it with isprone. hopefully this makes sense What scrip do I need to change for this just the third person or in the shooter input manager or both cause I want to make a button for it like in the input manager like this.
|
|
|
Post by gubwe on Oct 15, 2019 11:06:14 GMT
hie. well i did it a while back but i didnt like the animations a i had and got stuck on the shooting whilst prone. Im not good at coding but i did figure it out. what i did was first create a "is prone" boolean (hope thats the right right one) in the animator then i duplicated the free crouch animation state machine and renamed them to prone and then replaced the crouching animations in there with some prone ones. from there i copied all the code that had stuff to do with crouching and basically replaced it with isprone. hopefully this makes sense What scrip do I need to change for this just the third person or in the shooter input manager or both cause I want to make a button for it like in the input manager like this. hie
sorry for the late response. we are in different time zones so it might take some hours before i get to read your response. well when i did the prone thing i only edited third person and the button popped up in the inspector. have you managed to get it to go prone yet or you havent started?
|
|
|
Post by gubwe on Oct 15, 2019 11:08:43 GMT
What scrip do I need to change for this just the third person or in the shooter input manager or both cause I want to make a button for it like in the input manager like this. hie
sorry for the late response. we are in different time zones so it might take some hours before i get to read your response. well when i did the prone thing i only edited third person and the button popped up in the inspector. have you managed to get it to go prone yet or you havent started?
by "edited" i mean i copied the line of code in the input manager script for crouching and then i replaced it with prone. ie, the buttons etc. i hope im making sence. if not jus let me know and i'll figure out how to best assist you.
|
|
|
Post by gubwe on Oct 15, 2019 11:12:11 GMT
hie
sorry for the late response. we are in different time zones so it might take some hours before i get to read your response. well when i did the prone thing i only edited third person and the button popped up in the inspector. have you managed to get it to go prone yet or you havent started?
by "edited" i mean i copied the line of code in the input manager script for crouching and then i replaced it with prone. ie, the buttons etc. i hope im making sence. if not jus let me know and i'll figure out how to best assist you. the challenge i encountered which led to me stopping the prone thing was that i ddnt know how to edit the ik positions for when im pron with a gun. locomotion is pretty easy. and ith will also shoot but the body didnt look good. and im sure you did this but incase you didnt, dont forget to change the stateds in the animator, that area where the animations change to show that "is true" stuff to "is prone
|
|
|
Post by katcon1122 on Oct 16, 2019 16:59:45 GMT
by "edited" i mean i copied the line of code in the input manager script for crouching and then i replaced it with prone. ie, the buttons etc. i hope im making sence. if not jus let me know and i'll figure out how to best assist you. the challenge i encountered which led to me stopping the prone thing was that i ddnt know how to edit the ik positions for when im pron with a gun. locomotion is pretty easy. and ith will also shoot but the body didnt look good. and im sure you did this but incase you didnt, dont forget to change the stateds in the animator, that area where the animations change to show that "is true" stuff to "is prone Thanks for the responses and no haven't had a chance just yet have been working on placements in my game map. The second I try it I will let you know. :]
|
|
|
Post by gubwe on Oct 19, 2019 22:12:27 GMT
the challenge i encountered which led to me stopping the prone thing was that i ddnt know how to edit the ik positions for when im pron with a gun. locomotion is pretty easy. and ith will also shoot but the body didnt look good. and im sure you did this but incase you didnt, dont forget to change the stateds in the animator, that area where the animations change to show that "is true" stuff to "is prone Thanks for the responses and no haven't had a chance just yet have been working on placements in my game map. The second I try it I will let you know. :] no problem, im pretty sure you'll get it right coz if i cant code and i managed to do it then it'll be a breeze for you
|
|
|
Post by ghassen1992 on May 30, 2020 11:41:53 GMT
hie
sorry for the late response. we are in different time zones so it might take some hours before i get to read your response. well when i did the prone thing i only edited third person and the button popped up in the inspector. have you managed to get it to go prone yet or you havent started?
by "edited" i mean i copied the line of code in the input manager script for crouching and then i replaced it with prone. ie, the buttons etc. i hope im making sence. if not jus let me know and i'll figure out how to best assist you. Hi Guys , I am planing to add a prone to my project . what should I change exactly . I am new in gaming and when I tried to copy the crouch code in the imput manager to a prone . I got a lot of errors .
|
|
|
Post by ghassen1992 on May 30, 2020 11:50:46 GMT
Hi,
If there is someone who successfully integrated the prone in his project, is it possible to create a youtube video illustrating the steps so that I can do the same? I am not really good at coding. I have tried to do so but I got many bugs I am still learning.
I will be very grateful.
|
|
|
Post by Yort_Draeb on Jan 9, 2021 14:54:32 GMT
Hi, If there is someone who successfully integrated the prone in his project, is it possible to create a youtube video illustrating the steps so that I can do the same? I am not really good at coding. I have tried to do so but I got many bugs I am still learning. I will be very grateful.
|
|
azul
Junior vMember
Posts: 38
|
Post by azul on Jan 13, 2021 13:10:31 GMT
Hi, If there is someone who successfully integrated the prone in his project, is it possible to create a youtube video illustrating the steps so that I can do the same? I am not really good at coding. I have tried to do so but I got many bugs I am still learning. I will be very grateful. Thanks abunch for the detailed explanation and video walkthrough. I highly appreciate it!!!
|
|