nearestObject: Difference between revisions
Jump to navigation
Jump to search
m (Added links.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
____________________________________________________________________________________________ | |||
| Nearest object of given type to given position. For nearestObject pos, pos may be [x, y ,z, "type"] or [object, "type"] or even [x, y, z]. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''nearestObject''' pos |= Syntax | ||
|p1= pos: [[Array]] |= Parameter 1 | |||
| [[Object]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>_nObject = nearestObject [ [[player]], "StreetLamp"] | |||
Comments This command can only find objects up to 50 meters away.</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|NEARESTOBJECT]] | |||
[[Category:Scripting Commands OFP 1.96|NEARESTOBJECT]] | |||
[[Category:Scripting Commands OFP 1.46|NEARESTOBJECT]] | |||
[[Category:Scripting Commands ArmA|NEARESTOBJECT]] | |||
Revision as of 23:31, 1 August 2006
Description
- Description:
- Nearest object of given type to given position. For nearestObject pos, pos may be [x, y ,z, "type"] or [object, "type"] or even [x, y, z].
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_nObject = nearestObject [ [[player]], "StreetLamp"] Comments This command can only find objects up to 50 meters away.
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