BIS fnc ORBATSetGroupParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Strategic(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
(corrected wrong 1st param, corrected wrong function name)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Overrides group params from CfgORBAT. See [[ORBAT Viewer]] for a detailed explaination. |DESCRIPTION=
| Overrides group params from CfgORBAT. See [[ORBAT Viewer]] for a detailed explanation. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [IDType, size, type, side, name, shortName, texture, textSizeCoef, insignia, textColour, commName, commRank, description, assets] call [[BIS_fnc_ORBATSetGroupParams]] |SYNTAX=
| [target, IDType, size, type, side, name, shortName, texture, textSizeCoef, insignia, textColour, commName, commRank, description, assets] call [[BIS_fnc_ORBATSetGroupParams]] |SYNTAX=


|p1= IDType: [[Number]] or [[String]] - IDType (e.g., 1 to result in "1st", or a specific string)|PARAMETER1=
|p1= target: [[Config]] - Path to class in CfgORBAT
|p2= size: [[String]] - Size as a class from CfgChainOfCommand > Sizes (e.g., "Platoon")|PARAMETER2=
|p2= IDType: [[Number]] or [[String]] - IDType (e.g., 1 to result in "1st", or a specific string)|PARAMETER1=
|p3= type: [[String]] - Type as a class from CfgChainOfCommand > Types (e.g., "Infantry") |PARAMETER3=
|p3= size: [[String]] - Size as a class from CfgChainOfCommand > Sizes (e.g., "Platoon")|PARAMETER2=
|p4= side: [[String]] - Side as a class from CfgChainOfCommand > Sides (e.g., "West")|PARAMETER4=
|p4= type: [[String]] - Type as a class from CfgChainOfCommand > Types (e.g., "Infantry") |PARAMETER3=
|p5= name: [[String]] - Name. Passed arguments are: %1 - ID, %2 - type, %3 - size)|PARAMETER5=
|p5= side: [[String]] - Side as a class from CfgChainOfCommand > Sides (e.g., "West")|PARAMETER4=
|p6= shortName: [[String]] - Short name. Passed arguments are: %1 - ID, %2 - type, %3 - size)|PARAMETER6=
|p6= name: [[String]] - Name. Passed arguments are: %1 - ID, %2 - type, %3 - size)|PARAMETER5=
|p7= texture: [[String]] - Texture. Can be link to a file or a class from CfgMarkers|PARAMETER7=
|p7= shortName: [[String]] - Short name. Passed arguments are: %1 - ID, %2 - type, %3 - size)|PARAMETER6=
|p8= textSizeCoef: [[Number]] - Texture size coeficient. 1 is the default size|PARAMETER8=
|p8= texture: [[String]] - Texture. Can be link to a file or a class from CfgMarkers|PARAMETER7=
|p9= insignia: [[String]] - Insignia displayed in tooltip and in the ORBAT viewer background|PARAMETER9=
|p9= textSizeCoef: [[Number]] - Texture size coeficient. 1 is the default size|PARAMETER8=
|p10= textColour: [[Array]] - Texture color in format RGBA|PARAMETER10=
|p10= insignia: [[String]] - Insignia displayed in tooltip and in the ORBAT viewer background|PARAMETER9=
|p11= commName: [[String]] - Commander name. Can be the name directly or a class from CfgWorlds > GenericNames|PARAMETER11=
|p11= textColour: [[Array]] - Texture color in format RGBA|PARAMETER10=
|p12= commRank: [[String]] - Commander rank|PARAMETER12=
|p12= commName: [[String]] - Commander name. Can be the name directly or a class from CfgWorlds > GenericNames|PARAMETER11=
|p13= description: [[String]] - Description shown in tooltip|PARAMETER13=
|p13= commRank: [[String]] - Commander rank|PARAMETER12=
|p14= assets: [[Array]] of [[Array|arrays]] in format:
|p14= description: [[String]] - Description shown in tooltip|PARAMETER13=
|p15= assets: [[Array]] of [[Array|arrays]] in format:
*vehicleClass: [[String]] - Vehicle class name
*vehicleClass: [[String]] - Vehicle class name
*count: [[Number]] - Quantity of vehicles|PARAMETER14=
*count: [[Number]] - Quantity of vehicles|PARAMETER14=
Line 34: Line 35:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>
|x1= <code>[
[
configFile >> "CfgORBAT" >> "BIS" >> "B_1_A_1",
  1,  
  1,  
  "Platoon",  
  "Platoon",  
Line 50: Line 51:
  "Description",  
  "Description",  
  [ ["B_MRAP_01_F",5] ]  
  [ ["B_MRAP_01_F",5] ]  
] call [[BIS_fnc_ORBATAddGroupOverlay]];</code> |=
] call [[BIS_fnc_ORBATSetGroupParams]];</code> |=
______________
______________



Revision as of 12:31, 2 December 2020

Hover & click on the images for description

Description

Description:
Overrides group params from CfgORBAT. See ORBAT Viewer for a detailed explanation.
Execution:
call
Groups:
Strategic

Syntax

Syntax:
[target, IDType, size, type, side, name, shortName, texture, textSizeCoef, insignia, textColour, commName, commRank, description, assets] call BIS_fnc_ORBATSetGroupParams
Parameters:
target: Config - Path to class in CfgORBAT
IDType: Number or String - IDType (e.g., 1 to result in "1st", or a specific string)
size: String - Size as a class from CfgChainOfCommand > Sizes (e.g., "Platoon")
type: String - Type as a class from CfgChainOfCommand > Types (e.g., "Infantry")
side: String - Side as a class from CfgChainOfCommand > Sides (e.g., "West")
name: String - Name. Passed arguments are: %1 - ID, %2 - type, %3 - size)
shortName: String - Short name. Passed arguments are: %1 - ID, %2 - type, %3 - size)
texture: String - Texture. Can be link to a file or a class from CfgMarkers
textSizeCoef: Number - Texture size coeficient. 1 is the default size
insignia: String - Insignia displayed in tooltip and in the ORBAT viewer background
textColour: Array - Texture color in format RGBA
commName: String - Commander name. Can be the name directly or a class from CfgWorlds > GenericNames
commRank: String - Commander rank
description: String - Description shown in tooltip
assets: Array of arrays in format:
  • vehicleClass: String - Vehicle class name
  • count: Number - Quantity of vehicles
Return Value:
Boolean

Examples

Example 1:
[ configFile >> "CfgORBAT" >> "BIS" >> "B_1_A_1", 1, "Platoon", "Infantry", "West", "Name: %1 %2 %3", "Short Name: %1 %2 %3", "b_air", 3, "\A3\Air_F_EPB\Heli_Light_03\data\UI\Heli_Light_03_CA.paa", [0,0,0,1], "Commander Name", "General", "Description", [ ["B_MRAP_01_F",5] ] ] call BIS_fnc_ORBATSetGroupParams;

Additional Information

See also:
ORBAT ViewerBIS_fnc_ORBATAddGroupOverlayBIS_fnc_ORBATAnimateBIS_fnc_ORBATConfigPreviewBIS_fnc_ORBATGetGroupParamsBIS_fnc_ORBATOpenBIS_fnc_ORBATRemoveGroupOverlayBIS_fnc_ORBATSetGroupFadeBIS_fnc_ORBATTooltip

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

Notes

Bottom Section