Difference between revisions of "nearEntities"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(mp argument, example format)
Line 5: Line 5:
  
 
|1.00|= Game version
 
|1.00|= Game version
 +
 +
|arg= global |= Arguments in MP
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 33: Line 35:
 
|r2= [[Array]] of [[Object|Objects]] |= RETURNVALUE  
 
|r2= [[Array]] of [[Object|Objects]] |= RETURNVALUE  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
|x1= <pre>
+
|x1= <code>_list = [[player]] [[nearEntities]] 20;
_list = player nearEntities 20;
+
_list = ([[position]] [[player]]) [[nearEntities]] 50;
_list = (position player) nearEntities 50;
+
_list = [[player]] [[nearEntities]] ["Man", 1000];
_list = (position player) nearEntities ["Land", 1000];
+
_list = ([[position]] [[player]]) [[nearEntities]] ["LaserTarget", 3000];
_list = (position player) nearEntities ["LaserTarget", 3000];
+
_list = [[player]] [[nearEntities]] <nowiki>[</nowiki>["Car", "Motorcycle", "Tank"], 50];
_list = (position player) nearEntities [["All"], 50];
+
_list = ([[position]] [[player]]) [[nearEntities]] <nowiki>[</nowiki>["Man", "Air", "Car", "Motorcycle", "Tank"], 200];
_list = (position player) nearEntities [["Man", "Air", "Car", "Motorcycle", "Tank"], 200];
+
</code>|= EXAMPLE1
</pre>|= EXAMPLE1
 
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________

Revision as of 21:22, 30 July 2014

Template:Command

Notes

Posted on 27 Mar, 2014
Floriangeyer
According to Code Optimisation, this function is the fastest and should be used instead of nearestObjects.

Bottom Section