24.11.2017, 23:47
Hello guys, Is there any way to get the slope of the terrain?
@Sorry for my bad English!
@Sorry for my bad English!
CA_RayCastLineAngle(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float:x, &Float:y, &Float:z, &Float:rx, &Float:ry, &Float:rz)
CA_RayCastLineAngle(x, y, 1200.0, x, y, -100.0, z, z, z, GroupSlopeRX[playerid], GroupSlopeRY[playerid], z); GroupRotate(playerid, GroupSlopeRX[playerid], GroupSlopeRY[playerid], 0.0);