I'll check your code after work. Shouldn't be a problem with of click but it might be something I overlooked
Found the problem your using obj for an array you need to specify
Obj[0].Coords
Paradoxs wrote:I'll check your code after work. Shouldn't be a problem with of click but it might be something I overlooked
Found the problem your using obj for an array you need to specify
Obj[0].Coords
ae_maderero wrote:Paradoxs wrote:I'll check your code after work. Shouldn't be a problem with of click but it might be something I overlooked
Found the problem your using obj for an array you need to specify
Obj[0].Coords
That's not the problem, I modified the function and it returned 1 object. The problem is getHighlightedMapObjects returns objects with Coord2d, while getCoords returns Coord.
Make sure your using the latest version because IV tested and succeeded in usingae_maderero wrote:Paradoxs wrote:I'll check your code after work. Shouldn't be a problem with of click but it might be something I overlooked
Found the problem your using obj for an array you need to specify
Obj[0].Coords
That's not the problem, I modified the function and it returned 1 object. The problem is getHighlightedMapObjects returns objects with Coord2d, while getCoords returns Coord.
var boat = getHighlightedMapObjects()[0];
pfClick(boat);
ae_maderero wrote:That works, when it doesnt work is when you add a value, like doing coord.x +10.
Paradoxs wrote:ae_maderero wrote:That works, when it doesnt work is when you add a value, like doing coord.x +10.
I will look at it and see if I can figure out what's going on.
ae_maderero wrote:Paradoxs wrote:ae_maderero wrote:That works, when it doesnt work is when you add a value, like doing coord.x +10.
I will look at it and see if I can figure out what's going on.
Ty! Btw, a function to check if u are lifting something would be great. I made one, but its dirty code involving movement speed.
Also, dont use "typeof X != XXX", since you are going to work with Java classes. Use .class.getSimpleName()
Users browsing this forum: Claude [Bot] and 188 guests