11.02.2012, 15:57
(
Последний раз редактировалось Warfish; 11.02.2012 в 18:31.
)
Hello, I am making a new server and I got a scripting problem again..
I have made it this way that you can create races in-game and stored in a MySQL database, the races are saved in 2 tables, one for the information about the race: name, raceId, creator's name and an Angel, this angele is for the Spawn at the begin of race. The other table is linked to the first and contains the coordinates of the checkpoints. For now the scripting was going good until I came at this point.
When the race starts the creator of that race event will spawn first at the start line. that without problem. because I have the coordinates of that fist point and the vehicle Z angle saved in the database.
But here is my problem, I don't know how to calculate the positions for the other opponents at the start line.
I hope someone can help me with this.
I have made it this way that you can create races in-game and stored in a MySQL database, the races are saved in 2 tables, one for the information about the race: name, raceId, creator's name and an Angel, this angele is for the Spawn at the begin of race. The other table is linked to the first and contains the coordinates of the checkpoints. For now the scripting was going good until I came at this point.
When the race starts the creator of that race event will spawn first at the start line. that without problem. because I have the coordinates of that fist point and the vehicle Z angle saved in the database.
But here is my problem, I don't know how to calculate the positions for the other opponents at the start line.
I hope someone can help me with this.