From 1ae62665d65472507a21a2aa91e582f71547899f Mon Sep 17 00:00:00 2001 From: gus Date: Sun, 12 Jan 2014 14:02:40 +0100 Subject: [PATCH] get all actors following a given actor --- apps/openmw/mwmechanics/aifollow.cpp | 5 +++++ apps/openmw/mwmechanics/aifollow.hpp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/apps/openmw/mwmechanics/aifollow.cpp b/apps/openmw/mwmechanics/aifollow.cpp index 61994a8650..399504ff1d 100644 --- a/apps/openmw/mwmechanics/aifollow.cpp +++ b/apps/openmw/mwmechanics/aifollow.cpp @@ -122,3 +122,8 @@ bool MWMechanics::AiFollow::execute (const MWWorld::Ptr& actor,float duration) { return 3; } + +std::string MWMechanics::AiFollow::getFollowedActor() +{ + return mActorId; +} diff --git a/apps/openmw/mwmechanics/aifollow.hpp b/apps/openmw/mwmechanics/aifollow.hpp index 135ba9aac4..9d77b903de 100644 --- a/apps/openmw/mwmechanics/aifollow.hpp +++ b/apps/openmw/mwmechanics/aifollow.hpp @@ -19,6 +19,8 @@ namespace MWMechanics ///< \return Package completed? virtual int getTypeId() const; + std::string getFollowedActor(); + private: float mDuration; float mX;