Jump to content




[OpenCCSensors] How to display where players are?

peripheral computer utility

2 replies to this topic

#1 emerald

  • Members
  • 12 posts
  • LocationInverkeithing, Fife, Scotland

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.

#2 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

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

#3 emerald

  • Members
  • 12 posts
  • LocationInverkeithing, Fife, Scotland

Posted 02 November 2016 - 05:52 PM

View PostLupus590, on 01 November 2016 - 10:14 PM, said:

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!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users