[Tutorial] ColAndreas
#2

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
Reply


Messages In This Thread
ColAndreas - by Ph0eniX - 22.07.2018, 18:17
Re: ColAndreas - by DeadBrain - 23.07.2018, 00:32

Forum Jump:


Users browsing this thread: 1 Guest(s)