CameraPick ( camera,viewport_x#,viewport_y# )  

Parameters:

camera - camera handle
viewport_x# - 2D viewport coordinate
viewport_z# - 2D viewport coordinate

Description:

Picks the entity positioned at the specified viewport coordinates.

Returns the entity picked, or 0 if none there.

An entity must have its EntityPickMode set to a non-0 value value to be 'pickable'.

Example:

None.

Index