29.09.2017, 16:20
Quote:
Have you tried to lower the radius?
Код:
GetPointInFront2D(x,y,FCNPC_GetAngle(npcid),0.5,px,py); Код:
IsBetweenElementToPointIsWall(px,py,z,npcid,item_fcnpc) |
PHP код:
Tryg3D::Function:: IsBetweenElementToPointIsWall(Float:x,Float:y,Float:z,TRYG3D_ELEMENT_TAG targetid,Item3D_Type:target_type){
new Float:xB,Float:yB,Float:zB,Float:T3D:tmp;
if(!GetElementPos(targetid,target_type,xB,yB,zB)) return false;
return ColAndreas::RayCastLine(xB,yB,zB,x,y,z,T3D:tmp,T3D:tmp,T3D:tmp);
}