How can I get structure's position?

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

free_sc

Well-known member
Joined
Aug 30, 2018
Messages
36
I tried the code below, but it doesn't work. How can I get structure's position?


const auto& actors = ArkApi::GetApiUtils().GetWorld()->PersistentLevelField()->GetActorsField();
for (AActor* actor : actors)
{
actor->DefaultActorLocationField();
}
 
FVector StructPos = _this->RootComponentField()->RelativeLocationField();

where _this = APrimalStructure*
 
Back
Top