Home
Products
Community
Manuals
Contact
Login or Signup

Blitz3D Docs -> EntityPick

EntityPick ( entity,range# )

Parameters:

entity - entity handle
range# - range of pick area around entity

Description:

Returns the nearest entity 'ahead' of the specified entity. An entity must have a non-zero EntityPickMode to be pickable.

NB. the scale of the 'range' parameter is affected by the scale of the entity.

See also: EntityPick, LinePick, CameraPick, EntityPickMode.


Comments

Kryzon(Posted 1+ years ago)
'ahead' - does it mean it's like a spherical pick around the specified entity? Would the "range#" value be the picking sphere's radius?


GIB3D(Posted 1+ years ago)
Here's an example for EntityPick() that I put together.




Kryzon(Posted 1+ years ago)
Very good GIA. So in the end, it really is like a LinePick on the positive Z-Axis (if it were a spherical pick it would be much more useful...)


EdzUp[Using Unity](Posted 1+ years ago)
For a spherical pick use EntityDistance to see if an entity is within another entities distance.


_PJ_(Posted 1+ years ago)
The fact that when the range is negative, then (logivcally) the pick is reversed so it checks BEHIND the source entity might also be useful -

Maybe some means of checking when a homing missile is locked on and about to hit or something.


Blitz3D Manual Forum

BlitzPlus Equivalent Command