Quote:
Originally Posted by Exolent[jNr]
How would I go about taking a player's aim (upon issued command) and then have the vector moved away from the solid planes (world and other entities) so that it has enough space to spawn an entity clearly in the open?
I already have a method of subtracting 16 units from the aim vector, but that won't help in certain situations such as looking at the ground because the entity could still be in the ground.
(stupok, I'm waiting for you  )
|
What about
:
When the command is issued, you hook traceline, you change it to be at a point always equally distant from you at a predefined distance. You spawn the entity to that point and if it touches you add a visual information like changing it's color to red, if it doesn't touch you add a visual information like changing it's color to green. When the command ends, you will then check if the last position was "spawnable".
__________________