BIS fnc diagPreviewCycle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Diagnostic | |gr1= Diagnostic | ||
|descr= Previews selected class from the list. When '''cheat1''' is activated, classnames will be shown instead of display names. | |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]] | |s1= [container, position, vector, display] call [[BIS_fnc_diagPreviewCycle]] | ||
|p1= container: [[String]] - (Optional, default "CfgVehicles") | |p1= container: [[String]] - (Optional, default "CfgVehicles") class container. Can be: | ||
*"CfgVehicles" | * "CfgVehicles" | ||
*"CfgWeapons" | * "CfgWeapons" | ||
|p2= position: [[Position]] - (Optional, | |||
|p3= vector [[Array]] - (Optional, default [0,0]]) | |p2= position: [Array]] format [[Position]] - (Optional, default <sqf inline>[position player, 10, 0] call BIS_fnc_relPos</sqf>) position of the previewed object | ||
*0: Pitch | |||
*1: Bank | |p3= vector [[Array]] of [[Number]]s - (Optional, default [0,0]]) vector of previewed object in format: | ||
|p4= display: [[Display]] - (Optional, default [[BIS_fnc_displayMission]]) | * 0: Pitch | ||
* 1: Bank | |||
|p4= display: [[Display]] - (Optional, default [[BIS_fnc_displayMission]]) parent display | |||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <sqf>[ "CfgVehicles"] call BIS_fnc_diagPreviewCycle;</sqf> | |x1= <sqf>["CfgVehicles"] call BIS_fnc_diagPreviewCycle;</sqf> | ||
|seealso= [[:Category:Function Group: Diagnostic|Diag functions]] | |seealso= [[:Category:Function Group: Diagnostic|Diag functions]] | ||
}} | }} |
Latest revision as of 10:59, 8 November 2023
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:
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