configProperties: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{uc:{{PAGENAME}}}} " to "")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 24: Line 24:
|p4= inherit (Optional): [[Boolean]] - include inherited properties. Default: [[true]]
|p4= inherit (Optional): [[Boolean]] - include inherited properties. Default: [[true]]


| [[Array]] - Array of [[Config]]s
|r1=[[Array]] - Array of [[Config]]s


|x1= <code>_configs = [[configProperties]] [<nowiki/>[[configFile]] >> "CfgVehicles" >> "O_Truck_02_box_F"];</code> |EXAMPLE1=
|x1= <code>_configs = [[configProperties]] [<nowiki/>[[configFile]] >> "CfgVehicles" >> "O_Truck_02_box_F"];</code> |EXAMPLE1=

Revision as of 20:34, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Config

Syntax

Syntax:
Syntax needed
Parameters:
[config, condition, inherit]: Array
config: Config - config entry to search
condition (Optional): String - expression, which if returns true, adds current property to result. Default: "true"
inherit (Optional): Boolean - include inherited properties. Default: true
Return Value:
Array - Array of Configs

Examples

Example 1:
_configs = configProperties [configFile >> "CfgVehicles" >> "O_Truck_02_box_F"];
Example 2:
_configs = configProperties [configFile >> "RscText", "true", true];
Example 3:
Get all hitpoints of a truck:_hitPoints = []; _hitPointsCfgs = configProperties [ configFile >> "CfgVehicles" >> "O_Truck_02_box_F" >> "HitPoints", "true", true ]; hint str _hitPointsCfgs;

Additional Information

See also:
ConfigconfigFilemissionConfigFileconfigClassesconfigHierarchy

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