Move origin out of wall.

  • Thread starter Thread starter TheDistur
  • Start date Start date
T

TheDistur

Guest
I'm trying to figure out how to keep something from being created in the wall. I know the base_grenadeshared has something like that in it, but I'm not sure how to do that with the origin during an objects creation.

Code:
CBaseEntity::Create( "thing_to_be_created", GetLocalOrigin(), QAngle(0,0,0) );

That's what I have now, I know I need to change the GetLocalOrigin to something else :P

Ok so I need to do something with tracelines... If it hits the wall I need to go back about 3/4 the radius of the thing to be created and create there. How do I pass the vectors from the traceline to the Create?
 
Back
Top