Blitz3D Docs -> EntityPick
EntityPick ( entity,range# )
Parameters:
entity - entity handlerange# - 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
| ||
| 'ahead' - does it mean it's like a spherical pick around the specified entity? Would the "range#" value be the picking sphere's radius? |
| ||
| Here's an example for EntityPick() that I put together. |
| ||
| 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...) |
| ||
| For a spherical pick use EntityDistance to see if an entity is within another entities distance. |
| ||
| 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




