Guild icon
Teeworlds
discord.gg/teeworlds / general
Teeworlds Discord Server.
Between 2023-01-19 00:00:00Z and 2023-01-20 00:00:00Z
Avatar
Avatar
heinrich5991
perhaps wrong version of bam?
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
Avatar
What r u trying to do
Avatar
Avatar
Deleted User
i'm using the latest so idk
i believe old modes are using bam 0.4 instead of bam 0.5 (edited)
👍 1
Avatar
Avatar
Stiopa
What r u trying to do
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
Avatar
Avatar
Chairn
i believe old modes are using bam 0.4 instead of bam 0.5 (edited)
Alr Ima try that
Avatar
Avatar
Deleted User
Trying to do what I said before lol
what do you need the distance of tees for? what feature are you trying to implement?
Avatar
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
Avatar
you should take the time to learn programming independently of teeworlds
Avatar
And I'm looking for another way of calculation
13:49
To do the same thing
Avatar
Avatar
Dune
you should take the time to learn programming independently of teeworlds
Alright, but... Why ?
Exported 22 message(s)