Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a cover system?

Asked by 4 years ago

I'm trying to make a third person shooter and am wanting to implement a cover system similar to the one in The Division: https://www.youtube.com/watch?v=Yo4KbNiWkTw

The problem is, I have absolutely zero idea where to start with this. It would be great if you could refer me to helpful APIs that I can check out. I would like it to be able to detect walls and adjust the animation depending on the height of the walls, as well as have the character "stick" to the wall, using the A and D keys to walk along it until they press a keybind to back out of cover. Any help is appreciated, thank you for your time.

1 answer

Log in to vote
1
Answered by 4 years ago

The first thing you should start with is researching "CFrames". This is a piece of data used in scripting to help manipulate the camera into making it "third person".

For covering, well I don't know much information on whether you want your humanoid to walk up to the wall and automatically cover. I'm assuming you want to make it to where you aim your camera and press a key as shown in the division clip.

In that case, that would require a lot of animating and further complex scripting. I'd start with researching :

input KeyCode (this will make the hotkey for the snap to cover button)

custom animations

I wish you good luck, research about this and don't give up!

Ad

Answer this question