PHP Code:
ZombieAttack( const iZombie ) {
new Float:flFraction, Float:vStart[ 3 ], Float:vEnd[ 3 ], Float:vForward[ 3 ], iTr = create_tr2( );
new Float:vEndPos[ 3 ], pHit;
entity_get_vector( iZombie, EV_VEC_origin, vStart );
entity_get_vector( iZombie, EV_VEC_angles, vForward );
engfunc( EngFunc_MakeVectors, vForward );
get_tr2( iTr, TR_flFraction, flFraction );
I want to set it a target