configProperties: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
m (grammar) |
||
Line 6: | Line 6: | ||
|gr1= Config | |gr1= Config | ||
|descr= Returns an array of config entries | |descr= Returns an array of config entries that meet the criteria in the condition code. The command iterates through available classes and config properties for given config entry. | ||
Current looked at config is stored in _x variable (similar to alternative [[count]] command implementation). | Current looked at config is stored in _x variable (similar to alternative [[count]] command implementation). | ||
The condition has to return [[true]] in order for the looked at property to be added to the resulting array. This command is a bit slower than [[configClasses]] but allows to access inherited entries. | |||
|s1= [[configProperties]] [config, condition, inherit] | |s1= [[configProperties]] [config, condition, inherit] |
Latest revision as of 10:25, 23 July 2025
Description
- Description:
- Returns an array of config entries that meet the criteria in the condition code. The command iterates through available classes and config properties for given config entry. Current looked at config is stored in _x variable (similar to alternative count command implementation). The condition has to return true in order for the looked at property to be added to the resulting array. This command is a bit slower than configClasses but allows to access inherited entries.
- Groups:
- Config
Syntax
- Syntax:
- configProperties [config, condition, inherit]
- Parameters:
- config: Config - config entry to search
- condition: String - (Optional, default "true") expression, which if returns true, adds current property to result
- inherit: Boolean - (Optional, default true) include inherited properties
- Return Value:
- Array - array of Configs
Examples
- Example 1:
- Example 2:
- Example 3:
- Get all hitpoints of a truck:
Additional Information
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