Skip to content

aboule MDKHandler::readSingle #6

@1ZOverLXRD

Description

@1ZOverLXRD

for (int i = 0; i < actors.Count; i++) {
auto actor_address = (uintptr_t)actors.Data + 0x8 * i;
auto actor = MDKHandler::get(actor_address);
auto rootComp = actor.RootComponent<USceneComponent*>();
if (!rootComp) continue;
}

// Working version:
auto pos = MDKHandler::get((uintptr_t)rootComp + 0x128);
printf("i:%d pos:{%f,%f,%f}\n", i, pos.X(), pos.Y(), pos.Z());

// Failing version:
auto pos = MDKHandler::readSingle<USceneComponent, FVector>(rootComp, &USceneComponent::RelativeLocation);
printf("i:%d pos:{%f,%f,%f}\n", i, pos.X(), pos.Y(), pos.Z());

Why does MDKHandler::readSingle read an invalid value?
I'm poor in english,I wish someone can help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions