This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
emerald's profile picture

[OpenCCSensors] How to display where players are?

Started by emerald, 01 November 2016 - 04:20 PM
emerald #1
Posted 01 November 2016 - 05:20 PM
Hey, so I play tekkit legends allot and I play in a team. I want to be able to list what players are in what rooms. So, for example, I would have a map of the base on a monitor and have a pixel where people are, with their username enclosed in [ ]. It will also add what player was in what room along with the time into a text file. I can do all of this bar the sensing players and where they are. Any help? Or example code I can study?
And just to have the dankest memes:
Such doge, much wow, many programs.
Lupus590 #2
Posted 01 November 2016 - 10:14 PM
if per room accuracy is enough then place short-range sensors at doors and log entrance/exit

you may be able to get the player's location out of their table (as returned by the sensor), print out all of the keys of the table:

--# print all the keys/indexes of a table
for k in pairs(myTable) do
  print(k)
end

if it isn't provided then you could use several sensors and reverse a gps
emerald #3
Posted 02 November 2016 - 05:52 PM
if per room accuracy is enough then place short-range sensors at doors and log entrance/exit

you may be able to get the player's location out of their table (as returned by the sensor), print out all of the keys of the table:

--# print all the keys/indexes of a table
for k in pairs(myTable) do
  print(k)
end

if it isn't provided then you could use several sensors and reverse a gps
Thanks!