Hello!

I need a code snippet for the following: when we click with the right mouse button on an entity, we pick it up, and we can carry it around (it is levitating in front of the camera). With the left mouse button, we can throw it away. But with pressing right mouse button again, while we carry that entity around, we can gently put it down on the ground. This solution was in Half-Life 2. Please help me!

Thanks in advance!