diff --git a/DevourClient/Features/Misc/Misc.cpp b/DevourClient/Features/Misc/Misc.cpp index f6a6c71..cd58e2a 100644 --- a/DevourClient/Features/Misc/Misc.cpp +++ b/DevourClient/Features/Misc/Misc.cpp @@ -1,6 +1,7 @@ #include "Misc.hpp" #include "../../Utils/Output/Output.hpp" #include "../../Utils/Helpers/Helpers.hpp" +#include "../../Utils/Objects/Objects.hpp" #include void Misc::SetRank(int rank) { @@ -561,3 +562,15 @@ void Misc::SkipLongInteract() { } */ } + +void Misc::TPKeys() { + for (Unity::CGameObject* object : Objects::ObjectList) { + if (!object || !object->m_CachedPtr) { + continue; + } + + if (object->GetName()->ToString() == IL2CPP::String::New("Key(Clone)")->ToString()) { + object->GetTransform()->SetLocalPosition(Players::LocalPlayer->GetTransform()->GetPosition()); + } + } +}