Now that I look at it...I think he does know what he's talking about...but he just kinda told me to use stuff like i was stupid.
Well in this case I am...because I looked up what he said
velocity_by_aim
but I dont know
HOW to use this function. They give an example, but i am still unclear.
Quote:
|
Originally Posted by tsimscabinet at msn dot com
This native can easily be manually done with more alteration. This is an example of such:
new Float:vAngles[3] // plug in the view angles of the entity
new Float:vReturn[3] // to get out an origin fDistance away
new Float:fDistance = 400.0 // fDistance being the distance from the entity of your choice
entity_get_vector(id,EV_VEC_v_angles,vAngles)
vReturn[0] = floatcos( vAngles[1], degrees ) * fDistance
vReturn[1] = floatsin( vAngles[1], degrees ) * fDistance
vReturn[2] = floatsin( -vAngles[0], degrees ) * fDistance
|