Hey guys,
i have set-up my objectmanager class just fine and i am able to read everything from memory, like names, positions, guids, etc... i made a gui where it lists all gameobjects, npcs and players and if you click on a gameobject it will show you it's position, displayid etc...
now i want to set the position of a selected gameobject to the position of my player... i do it like this:
Code:
private void setObjectPosition(GameObject obj)
{
//Position Offsets
float PosX; float PosY; float PosZ; float Rotation;
uint XPositionOffset = 0x7D0,
YPositionOffset = 0x7D4,
ZPositionOffset = 0x7D8,
RotationOffset = 0x7DC;
//Change Position
//Write XPos
ObjectManager.WowReader.WriteFloat((obj.BaseAddress + XPositionOffset), ObjectManager.LocalPlayer.XPosition);
//Write YPos
ObjectManager.WowReader.WriteFloat((obj.BaseAddress + YPositionOffset), ObjectManager.LocalPlayer.YPosition);
//Write ZPos
ObjectManager.WowReader.WriteFloat((obj.BaseAddress + ZPositionOffset), ObjectManager.LocalPlayer.ZPosition);
//Write Rotation
ObjectManager.WowReader.WriteFloat((obj.BaseAddress + RotationOffset), ObjectManager.LocalPlayer.Rotation);
}
if i read the position of the gameobject again out of memory and compare it to the position of my player they are the same...
but if i look ingame nothing changes... i am sure the values have changed in memory, but i think there are some other offsets i have to write to, so the game knows the objectposition really changed. can you give me a little hint on what i am missing?