CameraPick picking most recent entity

Blitz3D Forums/Blitz3D Programming/CameraPick picking most recent entity

The problem is using MouseHit() in a loop. It will only read the mouse once. Either use MouseDown or (better) store MouseHit in a variable before the start of the For..Next loop.