BIS fnc diagVehicleIcons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "{{Feature|Warning|" to "{{Feature|warning|")
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Diagnostic


|1.00|= Game version
|gr2= Broken Functions
____________________________________________________________________________________________


| <pre>/*
|descr= Previews all vehicle icons on map.
{{Feature|warning|This function is broken as it uses bad arguments for [[BIS_fnc_returnParents]] ('''line 35''', {{hl|""}} instead of {{hl|true}})}}


Description:
|s1= [parentClass, position, map] call [[BIS_fnc_diagVehicleIcons]]
Previews all vehicle icons on map


Parameter(s):
|p1= parentClass: [[String]] - (Optional, default "all")
0: STRING (Optional) - Parent class of scanned vehicles (default "All")
1: ARRAY (Optional) - Position of the fist icon, others will be layered on top of it (default: [100,100], i.e. bottom left corner)
2: CONTROL (Optional) - Map on which markers are displayed (default value: main map)


Returns:
|p2= position: [[Position]] - (Optional, default [100,100]) position of the first icon on the ''map'', others will be layered on top of it
BOOL
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_diagVehicleIcons]]; --> |= Syntax
|p3= map: [[Control]] - (Optional, default <sqf inline>findDisplay 12 displayCtrl 51</sqf> a.k.a main map)


|p1= |= Parameter 1
|r1= [[Nothing]]


| |= Return value
|x1= <sqf>["all", getPos player] call BIS_fnc_diagVehicleIcons;</sqf>
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[:Category:Function Group: Diagnostic|Diag functions]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Diagnostic|{{uc:diagVehicleIcons}}]]
[[Category:Functions|{{uc:diagVehicleIcons}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:diagVehicleIcons}}]]

Latest revision as of 01:25, 2 February 2024

Hover & click on the images for description

Description

Description:
Previews all vehicle icons on map.
This function is broken as it uses bad arguments for BIS_fnc_returnParents (line 35, "" instead of true)
Execution:
call
Groups:
DiagnosticBroken Functions

Syntax

Syntax:
[parentClass, position, map] call BIS_fnc_diagVehicleIcons
Parameters:
parentClass: String - (Optional, default "all")
position: Position - (Optional, default [100,100]) position of the first icon on the map, others will be layered on top of it
map: Control - (Optional, default findDisplay 12 displayCtrl 51 a.k.a main map)
Return Value:
Nothing

Examples

Example 1:
["all", getPos player] call BIS_fnc_diagVehicleIcons;

Additional Information

See also:
Diag functions

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