BIS fnc displayName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
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|Comments=
{{Function


| tkoh |Game name=
| tkoh


|1.00|Game version=
|1.00


|gr1 = Configs |GROUP1=
|gr1 = Configs


| 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.


| [config] call [[BIS_fnc_displayName]] |SYNTAX=
| [config] call [[BIS_fnc_displayName]]


|p1= config: [[Config]] - config path |PARAMETER1=
|p1= config: [[Config]] - config path


| [[String]] - displayName, else [[configName]] |RETURNVALUE=
| [[String]] - displayName, else [[configName]]


|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>


| [[configName]] |SEEALSO=
| [[configName]]
}}
}}



Revision as of 00:02, 18 January 2021

Hover & click on the images for description

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


Bottom Section