Posted 01 June 2014 - 07:28 AM
Hi, I'm currently writing a program for people on a server to show stats about players of interest. I was really interested in Watch_Dogs, and it seemed like a fun project to create a "profiler" that allowed you to look up a player on the fly, know some information about them, and perhaps challenge them to a duel. As you can see by the source code, however, I haven't been having much luck getting anything that would be helpful to show in a concise (and correct!) way.
Anyhow, I don't have a lot of coding experience (I've just picked up LUA a few days ago, if I can be honest) but I came into a few snares:
Edit: I should mention I am using the CrackPack's most recent version, if that helps. (/r/crackpack)
Anyhow, I don't have a lot of coding experience (I've just picked up LUA a few days ago, if I can be honest) but I came into a few snares:
- I can loop through s.getPlayerData to get EVERYTHING, and I can loop through tables WITHIN tables (s.getPlayerData.position, for instance) but I can't seem to get values within tables to display (health, for instance, will give nil if I try to do s.getPlayerData.health, although I KNOW it simply doesn't work like that..)
One of the drawbacks to the sensor is that it gives data relative to itself, not relative to 0,0. Typically, that's fine, but it means that the coordinates will have to be calibrated to the sensor's position. Is there any way to "grab" the information from s.getPlayerData.position, and then apply a little math to it so it spits out the right coordinates? (For example, if the sensor is at x1, y1, z1, and the target is at x10, y10, z10, the program prints x10, y10, z10 instead of x11, y11, z11.)
Edit: I should mention I am using the CrackPack's most recent version, if that helps. (/r/crackpack)
Edited by