working example of entitypick?

Blitz3D Forums/Blitz3D Programming/working example of entitypick?

Anyone have a working example of EntityPick. I can't seem to get the function to return anything. I don't know what I'm doing worng.

It is acually the same as linepick:
TFormVector 0,0,range#,entity,0
pick=LinePick(EntityX(entity,1),EntityY(entity,1),EntityZ(entity,1),TFormedX(),TFormedY(),TFormedZ())

Just remember to also set a pickmode for entities, that should be picked, using EntityPickMode.