This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Help Hook Vector3

Arcuma

Rookie
public void MovePosition(Vector3 pos)
My code that doesn't work, I tried to change it but it doesn't work
Vector3 IsTeleport;

void (*Teleport)(void *instance, Vector3 value);
void (*old_Teleport)(void *instance);
void Teleport(void *instance) {
if (instance != NULL) {
if (IsTeleport.x > 0 || IsTeleport.y > 0 || IsTeleport.z > 0) {
Teleport(instance, IsTeleport);
}
}
return old_Teleport(instance);
}


Teleport = (void (*)(void *, Vector3))getAbsoluteAddress("libil2cpp.so", 0x666F20);
A64HookFunction((void *)getAbsoluteAddress("libil2cpp.so", 0x666188), (void *)Teleport, (void **) &old_Teleport);


case 14:
IsTeleport = value;
break;