BIS fnc returnParents: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Configs | |gr1= Configs | ||
| Returns list of all parent classes. | | Returns list of all parent classes. | ||
| [config, onlyClassNames] call [[BIS_fnc_returnParents]] | | [config, onlyClassNames] call [[BIS_fnc_returnParents]] | ||
|p1= config: [[Config]] - Starting config class | |p1= config: [[Config]] - Starting config class | ||
|p2= onlyClassNames: [[Boolean]] - (Optional, default [[false]]) [[true]] to return only class names | |p2= onlyClassNames: [[Boolean]] - (Optional, default [[false]]) [[true]] to return only class names | ||
| [[Array]] - List of all classes (including starting one) | | [[Array]] - List of all classes (including starting one) | ||
<!--- | <!--- | ||
Line 24: | Line 24: | ||
|x1= <code>[ [[configFile]] >> "CfgVehicles" >> "Land_FirePlace_F", [[true]] ] call [[BIS_fnc_returnParents]]; | |x1= <code>[ [[configFile]] >> "CfgVehicles" >> "Land_FirePlace_F", [[true]] ] call [[BIS_fnc_returnParents]]; | ||
//Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]</code> | //Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]</code> | ||
| [[configFile]], [[BIS_fnc_returnChildren]] | | [[configFile]], [[BIS_fnc_returnChildren]] | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> |
Revision as of 23:39, 17 January 2021
Description
Syntax
- Syntax:
- [config, onlyClassNames] call BIS_fnc_returnParents
- Parameters:
- config: Config - Starting config class
- onlyClassNames: Boolean - (Optional, default false) true to return only class names
- Return Value:
- Array - List of all classes (including starting one)
Examples
- Example 1:
[ configFile >> "CfgVehicles" >> "Land_FirePlace_F", true ] call BIS_fnc_returnParents; //Returns ["Land_FirePlace_F","House_F","House","HouseBase","NonStrategic","Building","Static","All"]
Additional Information
- See also:
- configFileBIS_fnc_returnChildren
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