Tabletop Simulator

Tabletop Simulator

X-Wing Heroes of the Aturi Cluster
Rogue-9 25 Jun, 2016 @ 5:00pm
Target Selection issue
I have noticed that the auto target selection will prioritise targets that are in the firing arc vs those that are not (as it should be).

But there is a problem with the function findNearestPlayer(guid) when only a small part of the real target is in the firing arc. In some cases it can happen that the wrong target is selected.

(see example here: http://i.imgur.com/OkzRcIw.png)
[yellow Y-Wing should easily be the target but blue is selected insted]

I have noticed that the reason for this is that the 'diff' for the yellow Y-Wing is > than pi/4 and that is why it is discarded as a potential target.

So either the 'angle' calculation in the function findNearestPlayer(guid) is not quite right or the 'diff<math.pi/4' requirement is just a little too narrow.

Hope my description above is helpful. If you have any issues replicating the problem, please let me know ;-D
< >
Showing 1-2 of 2 comments
Alpha 15 Nov, 2016 @ 10:00am 
where did you get the template for fire angle and where do you get the blue y-wing ? :)
Rogue-9 16 Nov, 2016 @ 9:57am 
I painted the Y-wing myself :-)

If you want to use it, right click on any of the the Scum Y-wings from the complete collection set and then under custom, paste this link ( http://i.imgur.com/h1bJwSS.jpg ) into the 'Diffuse/Image' field and click import.

The ruler is part of the script created by Korean Templar and co which they included on their tables with movement scripting. To activate it, right click a figurine and then type r into the description field and then click the table.
Last edited by Rogue-9; 16 Nov, 2016 @ 9:59am
< >
Showing 1-2 of 2 comments
Per page: 1530 50