1 posts
Posted 18 December 2015 - 08:46 PM
I'm playing on a PvP server with some friends and it would be awesome if I could write a program that either finds the coordinates for logged on players, or at least detects nearby players. I have some experience with C but I don't really know where to start with this so any help is appreciated.
2427 posts
Location
UK
Posted 18 December 2015 - 09:30 PM
Computercraft can't (on it's own) get player location (unless said player has a pocket computer, but then they need to be telling you their location).
You will need an addon for computercraft, I'm sure that some others will know which mods.
As for learning lua, look at the wiki and the tutorial section of the forums.
Edited on 18 December 2015 - 08:31 PM
7083 posts
Location
Tasmania (AU)
Posted 19 December 2015 - 07:24 AM
Computercraft can't (on it's own) get player location (unless said player has a pocket computer, but then they need to be telling you their location).
Well, a Command Computer can, though you won't be using one of those without OP rights.
2679 posts
Location
You will never find me, muhahahahahaha
Posted 19 December 2015 - 11:19 AM
If you want the position of a PC use the
GPS api.
16 posts
Posted 19 December 2015 - 11:54 AM
If you dont mind using a mod, I recommend the sensor from openperipheral-addons. it is not updated for CC-1.76prX yet.
as of CC alone, I have not found any way to do this.