1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

get all actors following a given actor

This commit is contained in:
gus 2014-01-12 14:02:40 +01:00
parent dd870e35db
commit 1ae62665d6
2 changed files with 7 additions and 0 deletions

View File

@ -122,3 +122,8 @@ bool MWMechanics::AiFollow::execute (const MWWorld::Ptr& actor,float duration)
{
return 3;
}
std::string MWMechanics::AiFollow::getFollowedActor()
{
return mActorId;
}

View File

@ -19,6 +19,8 @@ namespace MWMechanics
///< \return Package completed?
virtual int getTypeId() const;
std::string getFollowedActor();
private:
float mDuration;
float mX;