BIS fnc diagPreview: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1= Diagnostic |GROUP1=
|gr1= Diagnostic


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




|  [container, parentClass, distance, startPos] call [[BIS_fnc_diagPreview]] |SYNTAX=
|  [container, parentClass, distance, startPos] call [[BIS_fnc_diagPreview]]
|p1= container: [[String]] - (Optional, default "CfgVehicles") - Class container. Can be:
|p1= container: [[String]] - (Optional, default "CfgVehicles") - Class container. Can be:
*"CfgVehicles"
*"CfgVehicles"
*"CfgWeapons"|PARAMETER1=
*"CfgWeapons"
|p2= parentClass: [[String]] - (Optional, default [[typeOf]] [[player]]) - Parent class of the objects (e.g. "Car" or "Rifle")|PARAMETER2=
|p2= parentClass: [[String]] - (Optional, default [[typeOf]] [[player]]) - Parent class of the objects (e.g. "Car" or "Rifle")
|p3= distance: [[Number]] - (Optional, default 10) - Distance between objects|PARAMETER3=
|p3= distance: [[Number]] - (Optional, default 10) - Distance between objects
|p4= startPos: [[Position]] - (Optional, default [[screenToWorld]] [0.5,0.5] in [[Eden Editor]] or [[position]] [[player]]) - Start position|PARAMETER4=
|p4= startPos: [[Position]] - (Optional, default [[screenToWorld]] [0.5,0.5] in [[Eden Editor]] or [[position]] [[player]]) - Start position


| [[Array]] -  List of created classes|RETURNVALUE=
| [[Array]] -  List of created classes


|x1= <code>[ "CfgVehicles", "Car", 15, [0,0,0] ] [[call]] [[BIS_fnc_diagPreview]];</code>
|x1= <code>[ "CfgVehicles", "Car", 15, [0,0,0] ] [[call]] [[BIS_fnc_diagPreview]];</code>


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



Revision as of 23:03, 17 January 2021

Hover & click on the images for description

Description

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

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


Bottom Section