Setting Vehicle View Using Python and the API
ANVEL Team last edited by anvel
A user writes in to ask,
"When using the external API to select the driver’s view of a vehicle I’m using ‘SendStringCommand()’ and passing it ‘UseVehicleView’ and vehicle’s id. This sometimes selects the vehicle’s driver’s view and it sometimes selects a following view of the vehicle. Is there a another string that I can use with ‘SendStringCommand()’ to specifically select the driver’s view? Or is there a way to check a given vehicle’s current view and just use the string ‘CycleVehicleView’ until the desired view is returned?"
We created a quick Python script to attach the camera to a vehicle's preconfigured 1st person view. Check it out: