findNearestEnemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (reverted to original info)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object#Unit|Unit]] '''findNearestEnemy''' [[Position]] |= Syntax
| object '''findNearestEnemy''' position |= Syntax


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


|p2= [[Position]]|= Parameter 2
|p2= position: [[Object]] or [[Array]]|= Parameter 2


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

Revision as of 03:23, 30 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:
object findNearestEnemy position
Parameters:
object: Object
position: Object or Array
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