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 Lyqyd, 01 June 2014 - 07:46 AM.
fix formatting












