Jump to content

Recommended Posts

Posted

Noob DCS user here who has used FSX WideView / WideTraffic and wants to do something similar with DCS.

 

So as a multi-player spectator I want to automatically enter chase view on a player aircraft on mission start, based on the player's callsign.

 

In export.lua I can use LoGetWorldObjects, then iterate to find the object of interest by looking at its UnitName to see if it matches the callsign. But I don't know how to 'select' that object for viewing, such that I could then call LoSetCommand with command = 12 -- Chase view.

 

 

I want to do this as if I had hit F2 sufficient times to be looking at the desired aircraft and then F4. I don't think I can do this with simple keypress generation because it needs the feedback about which aircraft is currently being viewed.

 

Is this even possible? Looking at various scripting docs and sources I don't see an object view selection concept leaping out at me.

 

Also I'm wondering if it is possible to create viewports and assign arbitrary cameras to them; for example to view the cockpit and an external view at the same time? Or perhaps view over-shoulder snap views at all times? I see nothing in the config that explicitly associates a camera with a viewport...

 

Any advice appreciated!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...