void* old_setloc(*void instance, Vector2 location, bool update); void* setloc(*void instance, Vector2 location, bool update) { if (instance != NULL) { location = Vector2(GetPlayerLocation(myPlayer).X + 10, GetPlayerLocation.Y + 10); update = true; } old_setloc(instance, location, update); }