BIS fnc diagPreview: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (pf)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Previews selected classes from given container.|= Description
| Previews selected classes from given container.|DESCRIPTION=


____________________________________________________________________________________________
____________________________________________________________________________________________


|  [container, parentClass, distance, startPos] call [[BIS_fnc_diagPreview]] |= Syntax
|  [container, parentClass, distance, startPos] call [[BIS_fnc_diagPreview]] |SYNTAX=
____________________________________________________________________________________________
____________________________________________________________________________________________
|p1= container: [[String]] - (Optional, default "CfgVehicles") - Class container. Can be:
|p1= container: [[String]] - (Optional, default "CfgVehicles") - Class container. Can be:
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]] -  List of created classes|= Return value
| [[Array]] -  List of created classes|RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 27: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[:Category:Function Group: Diagnostic|Diag functions]]|= See also
|[[:Category:Function Group: Diagnostic|Diag functions]]|SEEALSO=
}}
}}



Revision as of 11:27, 7 April 2019

Hover & click on the images for description

Description

Description:
Previews selected classes from given container.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[container, parentClass, distance, startPos] call BIS_fnc_diagPreview
Parameters:
container: String - (Optional, default "CfgVehicles") - Class container. Can be:
  • "CfgVehicles"
  • "CfgWeapons"
parentClass: String - (Optional, default typeOf player) - Parent class of the objects (e.g. "Car" or "Rifle")
distance: Number - (Optional, default 10) - Distance between objects
startPos: Position - (Optional, default screenToWorld [0.5,0.5] in Eden Editor or position player) - Start position
Return Value:
Array - List of created classes

Examples

Example 1:
[ "CfgVehicles", "Car", 15, [0,0,0] ] call BIS_fnc_diagPreview;

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

Notes

Bottom Section