Teeworlds
discord.gg/teeworlds / general
Teeworlds Discord Server.
Between 2023-01-19 00:00:00Z and 2023-01-20 00:00:00Z
heinrich5991
perhaps wrong version of bam?
Deleted User
2023-01-19 12:54:49Z
i'm using the latest so idk
12:55
also
12:55
do you guys know how to calculate a distance between the local player and another player and based of this, it makes an action ? On lua btw
Stiopa
2023-01-19 12:56:42Z
What r u trying to do
Deleted User
i'm using the latest so idk
Chairn
2023-01-19 13:07:40Z
i believe old modes are using bam 0.4 instead of bam 0.5
(edited)
1
Stiopa
What r u trying to do
Deleted User
2023-01-19 13:12:18Z
Trying to do what I said before lol
13:12
Because
13:12
Wait
13:12
I used if distance < 70 then --- rest of the code
13:14
And the value of distance is
Lua local distance = math.sqrt((myPos.x - predictedPos.x)^2 + (myPos.y - predictedPos.y)^2)
13:15
But it doesn't work
13:15
As its not defined
Chairn
i believe old modes are using bam 0.4 instead of bam 0.5
(edited)
Deleted User
2023-01-19 13:15:31Z
Alr Ima try that
Deleted User
Trying to do what I said before lol
heinrich5991
2023-01-19 13:46:06Z
what do you need the distance of tees for? what feature are you trying to implement?
Deleted User
2023-01-19 13:46:48Z
I'm not trying to implement anything, I'm testing things
13:47
And right now i want to calculate this positions
(edited)
13:48
But as you can see the script is pretty bad
13:48
Since their Lua API does not seem to support it
Dune
2023-01-19 13:49:00Z
you should take the time to learn programming independently of teeworlds
Deleted User
2023-01-19 13:49:02Z
And I'm looking for another way of calculation
13:49
To do the same thing
Dune
you should take the time to learn programming independently of teeworlds
Deleted User
2023-01-19 13:49:42Z
Alright, but... Why ?
Exported 22 message(s)