Add TryMoveAlong(distance, angle)

This will take a distance you would like to move and an EQ angle you
would like to move relative to current heading (so 0 is in front, 256
behind)

Exported to Lua as well
This commit is contained in:
Michael Cook (mackal)
2018-03-06 23:03:55 -05:00
parent 7e7f5f0bd6
commit 8f66527e02
4 changed files with 47 additions and 0 deletions
+1
View File
@@ -578,6 +578,7 @@ public:
void SetFlyMode(uint8 flymode);
inline void Teleport(glm::vec3 NewPosition) { m_Position.x = NewPosition.x; m_Position.y = NewPosition.y;
m_Position.z = NewPosition.z; };
void TryMoveAlong(float distance, float angle, bool send = true);
//AI
static uint32 GetLevelCon(uint8 mylevel, uint8 iOtherLevel);