I currently don’t have a copy of UE4 because right now I’m planning out my game. I’m going to be getting UE4 soon (with in the week) and I’ll actually be able to get my hands dirty with UE4 so here is my problem/question.
Parameters of this game or system:
Start out in 1st person, then when you get into cover the camera zoomed out putting you into 3rd person to view your character and around corners or over cover or whatever the situation brings up.
I’m trying to figure out how to do a simple cover system (at least theoretically it’s simple) where you walk up to a wall or cover and you have to press X/A/ or some Keyboard Binding probably ‘C’ and it takes you from 1st person to 3rd person view and you’re able to strafe and aim while you’re attached to the cover, but It will be fairly easy to pull off of the cover when needed. Kind of like how Gears of War or Rainbow Six does it.
How I’d think of doing it:
Have a collision box/sphere on your character that constantly checks for valid cover or walls to lean against, it would also check the size of the cover. Let’s say my characters are 6 feet tall and they get up against a 7 foot box or crate they wouldn’t need to crouch to get into cover because it protects the character, but if they want to crouch they could. Then if they got against a piece of cover that was 3 feet tall they’d be exposed from the waist up so when they got against the cover it would auto crouch them behind the cover.
So my question is: Is there a tutorial on how to do this, and can I get a link or should I just try and figure it out myself?
I’ve looked on AnswerHub, I have checked some of the Wiki but I didn’t see any information on cover systems or anything like that.
TL;DR: I’m making a cover system, link me to a tutorial or documentation on the subject.