Pick-up stuff ala halflife

Blitz3D Forums/Blitz3D Beginners Area/Pick-up stuff ala halflife

How would you pick-up an object halflife style, Pivot? Parent?

Any pointers appreciated!

Mike

you could do
if entityinview(camera, entity) and entitydistance(camera, entity) < 1 and keyhit(57) then
entityparent entity, camera 


however, something like this is best done with a physics engine

Are you talking about walking into something and it disappearing like health or physically picking it up to throw, like a box or chair?

Thank you.

Picking it up so it looks like its stuck to the camera. chwaga's example looks right.

Sounds like I'll need a physics engine if I want to throw it and drop it and stuff.

yup :)