I'm trying to get the current camera position in my DLL. However, I'm not type casting it right or something because the data doesnt come in as a float. I can see it coming in and it changes, but the values are way wrong.
Here is my code, well at least the related lines.
typedef DWORD ( *DBPCameraPositionX_t ) ( void );
DBPCameraPositionX_t DBPCameraPositionX;
DBPCameraPositionX = ( DBPCameraPositionX_t ) GetProcAddress ( g_pGlob->g_Camera3D, "?GetXPositionEx@@YAKXZ" );
.
.
.
float cameraPosX = (float)DBPCameraPositionX();
ANybody have any ideas on what I'm doing wrong? IanM?
I am putting myself to the fullest possible use, which is all I think that any conscious entity can ever hope to do. ~Hal-9000