BIS fnc diagPreviewCycle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (pf)
m (Some wiki formatting)
 
(27 intermediate revisions by 3 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= Diagnostic
____________________________________________________________________________________________


| Previews selected class from the list. When '''cheat1''' is activated, classnames will be shown instead of display names.|= Description
|descr= Previews selected class from the list. When '''cheat1''' (?) is activated, classnames will be shown instead of display names.


____________________________________________________________________________________________
|s1= [container, position, vector, display] call [[BIS_fnc_diagPreviewCycle]]


|  [container, position, vector, display] call [[BIS_fnc_diagPreviewCycle]] |= Syntax
|p1= container: [[String]] - (Optional, default "CfgVehicles") class container. Can be:
____________________________________________________________________________________________
* "CfgVehicles"
|p1= container: [[String]] - (Optional, default "CfgVehicles") - Class container. Can be:
* "CfgWeapons"
*"CfgVehicles"
*"CfgWeapons"|= Parameter 1
|p2= position: [[Position]] - (Optional, [[position]] [[player]]) - Position of the previewed object|= Parameter 2
|p3= vector [[Array]] - (Optional, default [0,0]]) - Vector of previewed object in format:
*0: Pitch
*1: Bank|= Parameter 3
|p4= display: [[Display]] - (Optional, default [[BIS_fnc_displayMission]]) - Parent display|= Parameter 4
____________________________________________________________________________________________


| [[Boolean]]|= Return value
|p2= position: [Array]] format [[Position]] - (Optional, default <sqf inline>[position player, 10, 0] call BIS_fnc_relPos</sqf>) position of the previewed object
____________________________________________________________________________________________


|x1= <code>[ "CfgVehicles"] [[call]] [[BIS_fnc_diagPreviewCycle]];</code> |=
|p3= vector [[Array]] of [[Number]]s - (Optional, default [0,0]]) vector of previewed object in format:
____________________________________________________________________________________________
* 0: Pitch
* 1: Bank


|[[:Category:Function Group: Diagnostic|Diag functions]]|= See also
|p4= display: [[Display]] - (Optional, default [[BIS_fnc_displayMission]]) parent display
}}


<h3 style="display:none">Notes</h3>
|r1= [[Boolean]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>["CfgVehicles"] call BIS_fnc_diagPreviewCycle;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[:Category:Function Group: Diagnostic|Diag functions]]
[[Category:Function Group: Diagnostic|{{uc:diagPreviewCycle}}]]
}}
[[Category:Functions|{{uc:diagPreviewCycle}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:diagPreviewCycle}}]]

Latest revision as of 10:59, 8 November 2023

Hover & click on the images for description

Description

Description:
Previews selected class from the list. When cheat1 (?) is activated, classnames will be shown instead of display names.
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[container, position, vector, display] call BIS_fnc_diagPreviewCycle
Parameters:
container: String - (Optional, default "CfgVehicles") class container. Can be:
  • "CfgVehicles"
  • "CfgWeapons"
position: [Array]] format Position - (Optional, default [position player, 10, 0] call BIS_fnc_relPos) position of the previewed object
vector Array of Numbers - (Optional, default [0,0]]) vector of previewed object in format:
  • 0: Pitch
  • 1: Bank
display: Display - (Optional, default BIS_fnc_displayMission) parent display
Return Value:
Boolean

Examples

Example 1:
["CfgVehicles"] call BIS_fnc_diagPreviewCycle;

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