LinePick / Picked() problems

Blitz3D Forums/Blitz3D Beginners Area/LinePick / Picked() problems

Akira(Posted 2004) [#1]
Can anyone tell me why PickedX(), PickedY() & PickedZ() is returning results from a previously executed LinePick instead of the most recently executed LinePick.

This is really frustrating me because the older LinePick is done on a different entity than the most recent one.

Is there some way to reset LinePick or Picked?


Akira(Posted 2004) [#2]
I worked out what the problem was. The target entity was closer to the source entity than the entity I was trying to pick. As a result LinePick couldn't find any entities between the source and target entities and thus the Picked values remained the same as they were from the last successful LinePick (ie. the one with a different target entity).

Doh! - *slaps self on forehead*


Ross C(Posted 2004) [#3]
Doesn't the PickedEntity() value change when the pick doesn't return anything? I hope so ^_^. I'm pretty sure it does :o) I usually check that before i use any of the picked values.


Akira(Posted 2004) [#4]
So it does... I didn't know about that command. Thanks for for the heads-up, I'll have to make sure I use it too. :)