add: TPKeys function

>included Objects.hpp
This commit is contained in:
jadis0x
2022-10-08 23:41:26 +03:00
committed by GitHub
parent 3b3b419ac4
commit 38304b04bf

View File

@@ -1,6 +1,7 @@
#include "Misc.hpp"
#include "../../Utils/Output/Output.hpp"
#include "../../Utils/Helpers/Helpers.hpp"
#include "../../Utils/Objects/Objects.hpp"
#include <time.h>
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());
}
}
}