Pickedentity query
Blitz3D Forums/Blitz3D Programming/Pickedentity query
| ||
Does anybody know how to clear pickedentity(), I want to reset pickedentity without having to click on a non pickable part of the screen. |
| ||
Just do a linepick that you know won't hit anything? |
| ||
Thanks Gabriel, that worked great. |
| ||
pickedentity() returns the entity of the last succesful pick command if you pick into the air, PickedEntity() will return the last picked entity!!! |
| ||
Only if the "air" was pickable - which its not. i was hoping there was a command like flushkey() that did the equivalent for picked objects. |
| ||
Um... create a cube called air and hide it, position it to like something wayyyyyyyyyyyyy out there and pick it... you can now rule out air as being pickable and if anything but air was picked, do your magic? haha |
| ||
or you make the skybox pickable as in half life! (but make it big and attach it to the camera!) |
| ||
RTFM like Gabriel does :P A failed pick will return zero and pass that value on to PickedEntity(). No need to complicate matters. |
| ||
Hey Nexus asked if only air was pickable... I found a solution hehe. Your right though no need to make matters complicated. |