BIS fnc diagPreview: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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...) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Diagnostic | |gr1= Diagnostic | ||
| Previews selected classes from given container. | |descr= Previews selected classes from given container. | ||
|s1= [container, parentClass, distance, startPos] call [[BIS_fnc_diagPreview]] | |||
|p1= container: [[String]] - (Optional, default "CfgVehicles") class container. Can be: | |||
|p1= container: [[String]] - (Optional, default "CfgVehicles") | * "CfgVehicles" | ||
*"CfgVehicles" | * "CfgWeapons" | ||
*"CfgWeapons" | |||
| [[ | |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 | ||
|[[:Category: | |p4= startPos: [[Position]] - (Optional, default <sqf inline>getPos player</sqf> or <sqf inline>screenToWorld]] [0.5,0.5]</sqf> in [[:Category:Eden Editor|Eden Editor]]) start position | ||
|r1= [[Array]] - list of created classes | |||
< | |x1= <sqf>["CfgVehicles", "Car", 15, [0,0,0]] call BIS_fnc_diagPreview;</sqf> | ||
[[Category: | |seealso= [[:Category:Function Group: Diagnostic|Diag functions]] | ||
}} |
Latest revision as of 10:55, 8 November 2023
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 getPos player or screenToWorld]] [0.5,0.5] in Eden Editor) start position
- Return Value:
- Array - list of created classes
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