It was those playerbase stuffs I was trying to avoid in the first place :/.. Nevertheless Thanks a lot
edit:
still doesnt work. Im completley sure that I have the right playerbase, this crashes are driving me insane :/
Code:
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
private delegate int SetFacing(IntPtr playerBaseAddr, float floatRdr);
Code:
IntPtr cConnection = Marshal.ReadIntPtr(new IntPtr(0x12705B0));
IntPtr curMgr = Marshal.ReadIntPtr(cConnection, 0x2d94);
IntPtr curObj = Marshal.ReadIntPtr(curMgr, 0xac);
Int64 PlayerGuid = Marshal.ReadInt64(curMgr, 0xC0);
while (curObj != IntPtr.Zero)
{
if (Marshal.ReadInt64(curObj, 0x30) == PlayerGuid)
{
break;
}
curObj = Marshal.ReadIntPtr(curObj, 0x3c);
}
SetFacingHandler(curObj, rad);
I really feel like an idiot. Even with help I cant manage to get things working
Edit again: Once again thanks for the in-depths explanation. Lets see if I can understand something of this..