23.07.2018, 00:32
its so easy basically man function is
CA_RayCastLine(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float
, &Float:y, &Float:z);
look at this example :
wall = CA_RayCastLine(myposX, mypoY, myposZ, anotherPlayerposX, anotherPlayerposY, anotherPlayerposZ, &Float
, &Float:y, &Float:z);
if(wall != 0) there is an object between you and the player and basically wall is modelid of object id its 0 it mean no objects between you and player the x and y and z pos there are offsets that ray detect meanwhile its coords of points between you and the other player
CA_RayCastLine(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float
, &Float:y, &Float:z);look at this example :
wall = CA_RayCastLine(myposX, mypoY, myposZ, anotherPlayerposX, anotherPlayerposY, anotherPlayerposZ, &Float
, &Float:y, &Float:z);if(wall != 0) there is an object between you and the player and basically wall is modelid of object id its 0 it mean no objects between you and player the x and y and z pos there are offsets that ray detect meanwhile its coords of points between you and the other player

