nearObjects – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
Note recently added:
Note recently added:


{_x setdamage 1} foreach (position player nearObjects 50);
{_x setdamage 1} foreach (player nearObjects 50);


This neglects to mention that the player will also be killed, as will any other units within the range.
This neglects to mention that the player will also be killed, as will any other units within the range.


[[User:Planck|Planck]] 20:12, 26 August 2007 (CEST)
[[User:Planck|Planck]] 20:12, 26 August 2007 (CEST)

Revision as of 20:12, 26 August 2007

The returned object is not necessarily the closest one.

But an array of objects is returned, so this doesnt make sense. --T_D 09:46, 4 May 2007 (CEST)

Yeah, sorry. I'll rephrase that.
I meant to say that the first element in the array is not necessarily the closest one (like it is in the other "near*" commands). --Kronzky 16:31, 4 May 2007 (CEST)

Note recently added:

{_x setdamage 1} foreach (player nearObjects 50);

This neglects to mention that the player will also be killed, as will any other units within the range.

Planck 20:12, 26 August 2007 (CEST)