nearObjects – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 13: Line 13:


[[User:Planck|Planck]] 20:12, 26 August 2007 (CEST)
[[User:Planck|Planck]] 20:12, 26 August 2007 (CEST)
This can find #particlesource where as [[nearestObjects]] can't (?). --[[User:Doolittle|Doolittle]] 03:58, 28 August 2009 (CEST)

Revision as of 02:58, 28 August 2009

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)

This can find #particlesource where as nearestObjects can't (?). --Doolittle 03:58, 28 August 2009 (CEST)