BIS fnc showUnitInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ \{\{(Command|Function)" to "{{$1")
m (Text replacement - " |s1=[" to " |s1= [")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= GUI


|gr1= GUI |GROUP1=
|descr= Hides or shows '''weapon''' information. Also hides ''grenades'' information.


| Hides or shows '''weapon''' information. Also hides ''grenades'' information. |DESCRIPTION=
|s1= [showUnitInfo] call [[BIS_fnc_showUnitInfo]]


| [showUnitInfo] call [[BIS_fnc_showUnitInfo]] |SYNTAX=
|p1= showUnitInfo: [[Boolean]] - [[true]] to show weapon information, [[false]] to hide it


|p1= showUnitInfo: [[Boolean]] - [[true]] to show weapon information, [[false]] to hide it |PARAMETER1=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>false call BIS_fnc_showUnitInfo; // hides weapon information</sqf>


|x1= <code>[[false]] [[call]] [[BIS_fnc_showUnitInfo]]; {{codecomment|// hides weapon information}}</code> |EXAMPLE1=
|seealso= [[showHUD]] [[shownHUD]]
 
|[[showHUD]], [[shownHUD]] |SEEALSO=
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:showUnitInfo}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:showUnitInfo}}]]

Latest revision as of 23:12, 12 July 2022

Hover & click on the images for description

Description

Description:
Hides or shows weapon information. Also hides grenades information.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[showUnitInfo] call BIS_fnc_showUnitInfo
Parameters:
showUnitInfo: Boolean - true to show weapon information, false to hide it
Return Value:
Nothing

Examples

Example 1:
false call BIS_fnc_showUnitInfo; // hides weapon information

Additional Information

See also:
showHUD shownHUD

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