Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: soldat-game on February 11, 2016, 08:42:13 am

Title: How calculate distance and small sugest
Post by: soldat-game on February 11, 2016, 08:42:13 am
How I can calculate this distance using function distance();
(http://forums.soldat.pl/index.php?action=dlattach;topic=44222.0;attach=32444;image)
And can add Map.Bullet.AirTime and Map.Bullet.RicochetNum and Map.Bullet.FlyingDistance
Title: Re: How calculate distance and small sugest
Post by: urraka on February 11, 2016, 10:40:20 am
Divide the result of distance() by 14 to convert to 'm'.
Title: Re: How calculate distance and small sugest
Post by: soldat-game on February 11, 2016, 10:46:22 am
This does not give the exact values are very different .The values vary depending on the distances of up to 5
Title: Re: How calculate distance and small sugest
Post by: urraka on February 11, 2016, 11:38:39 am
The exact coordinates it uses to calculate the distance might differ from the ones you are using (this has bullet initial position and something else which I'm not sure what it is).
Title: Re: How calculate distance and small sugest
Post by: soldat-game on February 11, 2016, 12:05:34 pm
But it says invalid data even though I and the opponent dont move
Title: Re: How calculate distance and small sugest
Post by: soldat-game on March 07, 2016, 12:52:03 pm
 (this has bullet initial position and something else which I'm not sure what it is). devs what something else?