ACE3/docs/wiki/framework/viewports-framework.md
PabstMirror a4258f3587
Viewports (#8480)
* Viewports

* Support mem-points

* Update CfgVehicles.hpp

* Add some docs

* Cleanup Debugging

* Update addons/viewports/dev/debugPoints.sqf

Co-authored-by: Dystopian <sddex@ya.ru>

* Update addons/viewports/dev/debugPoints.sqf

Co-authored-by: Dystopian <sddex@ya.ru>

* Update addons/viewports/functions/fnc_eachFrame.sqf

Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>

* configProperties / 3den macro

* Update viewports-framework.md

* Update viewports-framework.md

* Add compats for rhs btrs

* Update addons/viewports/dev/debugPoints.sqf

Co-authored-by: Drofseh <Drofseh@users.noreply.github.com>

Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
Co-authored-by: Drofseh <Drofseh@users.noreply.github.com>
2022-05-17 11:55:09 -05:00

1.6 KiB

layout title description group order parent mod version
wiki Viewports Framework How to configure a vehicle for viewports framework 5 wiki ace
major minor patch
3 x y

1. Config Values

Reference ace_viewports_fnc_getViewports

class myVehicle {
    class ace_viewports {            
        class Template {
            // type [STRING] - Optional
            type = ""; 
             // camLocation [ARRAY or STRING] - Required
            camLocation = "memoryPointP1";
            camLocation[] = {1,2,3}; // model offset
            // camAttach [ARRAY or NUMBER] - Required
            camAttach[] = {0,0}; // Turret path
            camAttach = 55; // Direction in degrees
            // screenLocation [ARRAY or STRING] - Optional
            screenLocation = "memoryPointP1x";
            screenLocation[] = {1,2,3};
            // maxDistance [NUMBER] - Optional
            maxDistance = 0.75;
            // compartments [ARRAY] - Optional
            compartments[]={"Compartment1"};
            // roles [ARRAY] - Optional
            roles[]={"cargo"};
        };
        class periscope_0 {
            camLocation[] = {0.987915, -0.324707, -0.0673385};
            camAttach = 70;
            roles[]={"cargo"};
        };
        class commandersView {
            screenLocation[] = {0.729126,-0.191597,-0.573349};
            maxDistance = 5;
            type = "screen";
            camLocation[] = {0,0,0.05};
            camAttach[] = {0,0};
            roles[]={"cargo"};
        };
    };
};