Hello everyone.
From my understanding as I look at the SendCharacterStatePacket function, it requires that the destionation should be a float* (float pointer).
Casting the coordinates into float* like the following:
doesn't seem to do the job. It seems that the character is teleporting in place, while it should move +20.f in the X plane. My coordinates are ok, updating real-time & before the cast is made, so that shouldn't be a problem either.
I've tried casting even the "Y" coord into it (thinking that it requires it), but as the function error says, it requires just "fDest=(x,y)".
I've put a breakpoint on the error and it doesn't seem to get triggered while testing, so I don't really know what I'm doing wrong here.
Any help is appreciated!
Thank you very much!
From my understanding as I look at the SendCharacterStatePacket function, it requires that the destionation should be a float* (float pointer).
Casting the coordinates into float* like the following:
PHP Code:
float finalDest[2] = { charPos.x + 20.f, charPos.y };
I've tried casting even the "Y" coord into it (thinking that it requires it), but as the function error says, it requires just "fDest=(x,y)".
I've put a breakpoint on the error and it doesn't seem to get triggered while testing, so I don't really know what I'm doing wrong here.
Any help is appreciated!
Thank you very much!