BIS fnc displayName: Difference between revisions
Jump to navigation
Jump to search
m (class -> config path, should prevent confusion with classname) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| tkoh |Game name= | | tkoh |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Configs |GROUP1= | |gr1 = Configs |GROUP1= | ||
| Return given class displayName value. Return base class name if displayName not defined. |DESCRIPTION= | | Return given class displayName value. Return base class name if displayName not defined. |DESCRIPTION= | ||
| [config] call [[BIS_fnc_displayName]] |SYNTAX= | | [config] call [[BIS_fnc_displayName]] |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[String]] - displayName, else [[configName]] |RETURNVALUE= | | [[String]] - displayName, else [[configName]] |RETURNVALUE= | ||
|x1= <code>_myDisplayName = [<nowiki/>[[configFile]] >> "CfgVehicles" >> [[typeOf]] [[vehicle]] [[player]]] [[call]] [[BIS_fnc_displayName]];</code> |EXAMPLE1= | |x1= <code>_myDisplayName = [<nowiki/>[[configFile]] >> "CfgVehicles" >> [[typeOf]] [[vehicle]] [[player]]] [[call]] [[BIS_fnc_displayName]];</code> |EXAMPLE1= | ||
| [[configName]] |SEEALSO= | | [[configName]] |SEEALSO= |
Revision as of 00:15, 17 January 2021
Description
- Description:
- Return given class displayName value. Return base class name if displayName not defined.
- Execution:
- call
- Groups:
- Configs
Syntax
- Syntax:
- [config] call BIS_fnc_displayName
- Parameters:
- config: Config - config path
- Return Value:
- String - displayName, else configName
Examples
- Example 1:
_myDisplayName = [configFile >> "CfgVehicles" >> typeOf vehicle player] call BIS_fnc_displayName;
Additional Information
- See also:
- configName
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