Log in to reply
 

C# Ped Camera View



  • We're all familiar with the first and third person camera views in GTA5, bound by default to the V key.
    With C# you can create script cameras giving you more flexibility without having to use the R* Editor.

    One mini project I'm working on now is giving the camera to the ped and having the ped film the player. In this particular demo, the player is on a motorcycle and is being followed by a ped holding the camera. Don't worry, the ped isn't driving while filming, they are just a passenger.

    Two functions help to make this happen:
    ATTACH_CAM_TO_PED_BONE is used for to enable the ped to hold the camera
    TASK_VEHICLE_ESCORT is used by another ped, the one driving the motorcycle, to follow the player, while the ped with camera on the back of this motorcycle does the filming.

    To make this work well you need to adjust driving styles, speeds, minimum distances - which I didn't mess with since I was focused on camera only - so this is just a proof of concept but it looks promising. Sadly some peds died during the filming of this video.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.