Add some Follow stuff to lua

You can also disallow following code from allowing the NPC to run if
they're far enough away
This commit is contained in:
Michael Cook (mackal)
2018-11-03 17:44:19 -04:00
parent 5e03d977d6
commit dbb368865c
5 changed files with 31 additions and 5 deletions
+2 -1
View File
@@ -383,8 +383,9 @@ Mob::Mob(const char* in_name,
m_CurrentWayPoint = glm::vec4();
cur_wp_pause = 0;
patrol = 0;
follow = 0;
follow_id = 0;
follow_dist = 100; // Default Distance for Follow
follow_run = true; // We can run if distance great enough
no_target_hotkey = false;
flee_mode = false;
currently_fleeing = false;