[Tutorial] ColAndreas
#1

Hi everybody. I would like an tutorial how to use ColAndreas (I never used it or MapAndreas).
I'm creating an submarine script and i want to "stop the submarine" when it "hit" ground under water , ground and other objectes , but idk how to use it . Thanks.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)