BIS fnc textureVehicleIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling - missing seeAlso)
Line 1: Line 1:
 
{{Function|Comments=
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Checks whether icon is defined in CfgVehicleIcons and if so, returns the icon. |Description=
 
Description:
Checks whether texture is defined in CfgVehicleIcons and if so, returns the icon.
 
Parameter(s):
0: STRING - texture
 
Returns:
STRING
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_textureVehicleIcon]]; --> |= Syntax
| [wantedIcon] call [[BIS_fnc_textureVehicleIcon]] |Syntax=


|p1= |= Parameter 1
|p1= wantedIcon: [[String]] |Parameter 1=


| |= Return value
| [[String]] - icon texture path, or ''wantedIcon'' if not found |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_mediTexture = ["iconManMedic"] [[call]] [[BIS_fnc_textureVehicleIcon]];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |See also=
 
}}
}}


Line 45: Line 31:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:textureVehicleIcon}}]]
[[Category:Function Group: Misc|{{uc:textureVehicleIcon}}]]
[[Category:Function Group: Misc|{{uc:textureVehicleIcon}}]]
[[Category:Functions|{{uc:textureVehicleIcon}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:textureVehicleIcon}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:textureVehicleIcon}}]]

Revision as of 15:39, 6 June 2018

Hover & click on the images for description

Description

Description:
Checks whether icon is defined in CfgVehicleIcons and if so, returns the icon.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[wantedIcon] call BIS_fnc_textureVehicleIcon
Parameters:
wantedIcon: String
Return Value:
String - icon texture path, or wantedIcon if not found

Examples

Example 1:
_mediTexture = ["iconManMedic"] call BIS_fnc_textureVehicleIcon;

Additional Information

See also:
See also needed

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

Notes

Bottom Section