intersect: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (typo)
mNo edit summary
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]]<nowiki>=</nowiki> [ [[Object]], "LodName"] '''intersect''' [beginPos, endPos] |= Syntax
| [[Array]]<nowiki>=</nowiki> [object, lodName] '''intersect''' [begin, end] |= Syntax


|p1= [[Object]] |= Parameter 1
|p1= [object, lodName]: [[Array]] |= Parameter 1
|p2= LodName: [[String]] |= Parameter 2
|p2= object: [[Object]] |= Parameter 2
|p3= beginPos: [[Position3D]] |= Parameter 3
|p3= lodName: [[String]] |= Parameter 3
|p4= endPos: [[Position3D]] |= Parameter 4
|p4= [begin, end]: [[Array]] |= Parameter 4
|p5= begin: [[Array]] - format [[Position3D]] |= Parameter 5
|p6= end: [[Array]] - format [[Position3D]] |= Parameter 6


| [[Array]] |= Return value
| [[Array]] |= Return value

Revision as of 01:51, 23 January 2009

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Find named selections in object which is in specified lod intersected by given section of a line. Return value is in the form of [selection, number]. Multiple returned arrays are nested within a single array, and no intersection will return an empty array. "LodName" is one of: "FIRE", "VIEW", "GEOM", "IFIRE"
Groups:
Uncategorised

Syntax

Syntax:
Array= [object, lodName] intersect [begin, end]
Parameters:
[object, lodName]: Array
object: Object
lodName: String
[begin, end]: Array
begin: Array - format Position3D
end: Array - format Position3D
Return Value:
Array

Examples

Example 1:
[_tank, "VIEW"] intersect [[1500, 1500, 2], [1550, 1500, 2]]

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

The most common LOD is "FIRE", which identifies the most detailled hitbox used for ammunition.

Bottom Section