findNearestEnemy: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(recategorization)
m (=)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| object '''findNearestEnemy''' position |= Syntax
| [[Object]|unit] <nowiki>=</nowiki> unit'''findNearestEnemy''' [[Position]] |= Syntax


|p1= object: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1


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


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

Revision as of 23:50, 26 August 2007

{{Command|= Comments ____________________________________________________________________________________________

| arma |= Game name

|1.00|= Game version ____________________________________________________________________________________________

| Find the nearest enemy from the specified position. |= Description ____________________________________________________________________________________________

| [[Object]|unit] = unitfindNearestEnemy Position |= Syntax

|p1= unit: Object |= Parameter 1

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

| Object |= Return value ____________________________________________________________________________________________

| |= See also

}}

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