findNearestEnemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object|unit]] <nowiki>=</nowiki> unit '''findNearestEnemy''' [[Position]] |= Syntax
| [[Object#Unit|Unit]] <nowiki>=</nowiki> '''findNearestEnemy''' [[Position]] |= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= [[Object#Unit|Unit]] |= Parameter 1


|p2= [[Position]]: ([[Array]]) |= Parameter 2
|p2= [[Position]]|= Parameter 2


| [[Object]] |= Return value
| [[Object]] |= Return value

Revision as of 11:21, 27 August 2007

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

Description

Description:
Find the nearest enemy from the specified position. Returns a null object if the group does not know about any enemies.
Groups:
Uncategorised

Syntax

Syntax:
Unit = findNearestEnemy Position
Parameters:
Unit
Position
Return Value:
Object

Examples

Examples:
Example needed

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

Posted on January 9, 2007 - 06:13
ColonelSandersLite

Returns the nearest enemy the group knows about, not the true nearest enemy. Returns a null object if the group does not know about any enemies.

Bottom Section