struct Vector3{
float x;
float y;
float z;
Vector3();
Vector3(float x, float y, float z);
~Vector3();
};
Vector3::Vector3() {}
Vector3::Vector3(float x, float y, float z) : x(x), y(y), z(z) {}
Vector3::~Vector3() {}
void *(*get_transform)(void *_instance) = (void*(*)(void *))getRealOffset(0x10239446C);
void (*set_position_Injected)(void *_instance, Vector3 _vectorInstance) = (void (*)(void *, Vector3 ))getRealOffset(0x1023BF5FC);
void setPosition(void *component, Vector3 position) {
void* transform = get_transform(component);
set_position_Injected(transform, position);
}
void(*old_PlayerUpdate)(void *instance);
void PlayerUpdate(void *instance){
bool isMine = get_isMine(instance);
if([switches isSwitchOn:@"Teleport"]) {
if(isMine == true){
/*where it says Vector3(100.0f, 0.0f, 100.0f)); you can make it whatever coords
you want, you just gotta experiment with where you set it. You can find coords easier with
igamegod or game guardian by looking for your x, y and z. */
setPosition(instance, Vector3(100.0f, 0.0f, 100.0f));
}
}
return old_PlayerUpdate(instance);
}
%ctor {
MSHookFunction((void *)getRealOffset(0x10185AEB0), (void *)PlayerUpdate, (void **)&old_PlayerUpdate);
}
bool (*get_isMine)(void *instance) = (bool (*)(void *))getRealOffset(0x1019F6604); //SynchronizedGameObject$$get_isMine
thank you bro! Ez and works great
If i want teleport to map marker then whats tge process??
thank you bro! Ez and works great
If i want teleport to map marker then whats tge process??
The update method for the class that deals with the playerAny hints for finding updateplayer method
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies