entity pick

Blitz3D Forums/Blitz3D Beginners Area/entity pick

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

not sure exactly what you are trying to achieve as I havent read the entire post, however.

to make an entity NON pickable set entitypickmode to 0
else use entitypickmode,2 for most situations.

example

create a level called level1 and an enemy called enemy.

do your camerapick then

if pick=something non pickable goto endofpick

if pick-level1 then

do something

if pick=enemy
then do something else

.endofpick


to show a sprite where you picked like a bullethole or similar, use something like below to position the sprite
obviously the "whatever" will be referenced as a type for the sprite loaded earlier. Hope this makes some sense.

positionentity whatever,PickedX(),PickedY(),PickedZ()

aligntovector whatever,-PickedNX(),-PickedNY(),-PickedNZ(),3