BIS fnc boundingBoxCorner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (template:command argument fix)
(6 intermediate revisions by 4 users not shown)
Line 5: Line 5:
| arma2oa |= Game name
| arma2oa |= Game name


|1.00|= Game version
|1.51|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| <pre>
/*
/*
File: fn_boundingBoxCorner.sqf


Description:
Description:
Returns position of all four bounfing box corners
Returns position of all four bounding box corners
OR
Returns position of the nearest corner to the given position


Parameter(s):
Parameter(s):
_this: Object
_this: OBJECT - object with bounding box
OR
_this: ARRAY in format:
0: OBJECT - object with bounding box
1: ARRAY or OBJECT - position for which the nearest corner is returned
Returns:
ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box
OR
ARRAY in format [x,y,z] - position of the nearest corner
Example 1:
_corners = car call BIS_fnc_boundingBoxCorner;
Example 2:
_nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;


Returns:
Array in format [pos1,pos2,pos3,pos4]
*/
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_boundingBoxCorner]]; --> |= Syntax
| <!-- [] call [[BIS_fnc_boundingBoxCorner]]; --> |SYNTAX=


|p1= |= Parameter 1
|p1= |PARAMETER1=


| |= Return value
| |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 35: Line 48:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |SEEALSO=


}}
}}

Revision as of 15:28, 7 April 2019


Hover & click on the images for description

Description

Description:
/*

	Description:
		Returns position of all four bounding box corners
		OR
		Returns position of the nearest corner to the given position

	Parameter(s):
		_this: OBJECT - object with bounding box
		OR
		_this: ARRAY in format:
			0: OBJECT - object with bounding box
			1: ARRAY or OBJECT - position for which the nearest corner is returned
	Returns:
		ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box
		OR
		ARRAY in format [x,y,z] - position of the nearest corner
		
	Example 1:
		_corners = car call BIS_fnc_boundingBoxCorner; 
		
	Example 2:
		_nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;

*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

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