enableInfoPanelComponent: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "|= Alternative Syntax " to "|Alternative Syntax= ") | mNo edit summary | ||
| Line 5: | Line 5: | ||
| |1.72|Game version= | |1.72|Game version= | ||
| |gr1= Custom Panels |GROUP1= | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Line 53: | Line 55: | ||
| [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
| [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 08:46, 19 September 2020
Description
- Description:
- Controls availability of component to given object info panel.
- Groups:
- Custom Panels
Syntax
- Syntax:
- unit enableInfoPanelComponent [panelID, componentClassOrType, enable]
- Parameters:
- unit: Object - the concerned vehicle
- panelID: String - "left" or "right" can be used as panel names
- componentClassOrType: String
- enable: Boolean
- Return Value:
- Boolean - true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)
Alternative Syntax
- Syntax:
- [unit, turretPath] enableInfoPanelComponent [panelID, componentClassOrType, enable]
- Parameters:
- unit: Object - the concerned vehicle
- turretPath: Array - turret index
- panelID: String - "left" or "right" can be used as panel names
- componentClassOrType: String
- enable: Boolean
- Return Value:
- Boolean - true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)
Examples
- Example 1:
- // enables slingload assistant on player's vehicle right panel at driver position [vehicle player, [-1]] enableInfoPanelComponent ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplay", true];
Additional Information
- See also:
- Arma 3 Custom InfoinfoPanelinfoPanelssetInfoPanelinfoPanelComponentsinfoPanelComponentEnabled
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
 Only post proven facts here! Add Note
 
	