16.04.2019, 12:02

Yo.

I'm making some shit with race so, let's say there are 6 cars for example below like this:

[1] [2]

[3] [4]

[5] [6]

How would I put the actor in the middle for example below (line in the middle).

[1] | [2]

[3] [4]

[5] [6]

?

I'm making some shit with race so, let's say there are 6 cars for example below like this:

[1] [2]

[3] [4]

[5] [6]

How would I put the actor in the middle for example below (line in the middle).

[1] | [2]

[3] [4]

[5] [6]

Code:

RACE_createVehicle(playerid, RACE_rInfo[RACE_runningID][0][raceVehicleID], X, Y, Z, angle, RACE_rInfo[RACE_runningID][0][raceInterior], RACE_VIRTUALWORLD); X = RACE_rInfo[RACE_runningID][0][raceSpawnPositionX] + (distance * 1.5) * floatcos(angle, degrees); Y = RACE_rInfo[RACE_runningID][0][raceSpawnPositionY] + (distance * 1.5) * floatsin(angle, degrees); SetPlayerCameraLookAt(playerid, X, Y, Z); X = (RACE_rInfo[RACE_runningID][0][raceSpawnPositionX] + ((distance * 1.5) * floatcos(angle, degrees)) + (12 * floatsin(- angle, degrees))); Y = (RACE_rInfo[RACE_runningID][0][raceSpawnPositionY] + ((distance * 1.5) * floatsin(angle, degrees)) + (12 * floatcos(- angle, degrees)));