aboutsummaryrefslogtreecommitdiff
path: root/Classes.h
diff options
context:
space:
mode:
authorBDKPlayer <fabian.stotz@yahoo.de>2020-04-01 11:29:39 +0200
committerBDKPlayer <fabian.stotz@yahoo.de>2020-04-01 11:29:39 +0200
commit1d01371aebc416819af2ddd8e77c86e762011314 (patch)
treebe692883d4d09fa84c686a579cba76e3f2cde516 /Classes.h
parent78ddf8f82467c64d8653cea199e1f435afe41b76 (diff)
Updated to game version 101.101.36202.0 4819260
Diffstat (limited to 'Classes.h')
-rw-r--r--Classes.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Classes.h b/Classes.h
index fee51b8..91f6874 100644
--- a/Classes.h
+++ b/Classes.h
@@ -303,7 +303,13 @@ public:
return reinterpret_cast<Vector3*>(actionMoveTo + 0x38);
}
-
+
+ typedef char(__fastcall* fhsMoveToCaller)(Unit* unit, Unit* targetUnit, World* world, int64_t zero, float xPos, float yPos, int zero2);
+ void MoveTo(World* world, float xPos, float yPos)
+ {
+ static fhsMoveToCaller moveUnitCaller = (fhsMoveToCaller)((int64_t)GetModuleHandle(NULL) + 0xc863a0);
+ moveUnitCaller(this, 0, world, 0, xPos, yPos, 0);
+ }
}; //Size=0x0250