mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a4258f3587
* 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>
1.6 KiB
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 |
|
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"};
};
};
};