Skip to content

Commit

Permalink
Merge pull request Dartanlla#135 from Sikhor/main
Browse files Browse the repository at this point in the history
Save Location in UpdateCharacterStats() - Update OWSCharacterWithAbilities.cpp
  • Loading branch information
Dartanlla authored Apr 19, 2024
2 parents 6d6e950 + b419aad commit 5756703
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,15 @@ void AOWSCharacterWithAbilities::UpdateCharacterStats()
CharacterStats.UpdateCharacterStats.ReloadSpeed = OWSAttributes->ReloadSpeed.GetBaseValue();
CharacterStats.UpdateCharacterStats.Range = OWSAttributes->Range.GetBaseValue();
CharacterStats.UpdateCharacterStats.Speed = OWSAttributes->Speed.GetBaseValue();

// Save Location also
CharacterStats.UpdateCharacterStats.X = this->GetActorLocation().X;
CharacterStats.UpdateCharacterStats.Y = this->GetActorLocation().Y;
CharacterStats.UpdateCharacterStats.Z = this->GetActorLocation().Z;
CharacterStats.UpdateCharacterStats.RX = this->GetActorRotation().Roll;
CharacterStats.UpdateCharacterStats.RY = this->GetActorRotation().Pitch;
CharacterStats.UpdateCharacterStats.RZ = this->GetActorRotation().Yaw;


FString PostParameters = "";
if (FJsonObjectConverter::UStructToJsonObjectString(CharacterStats, PostParameters))
Expand Down

0 comments on commit 5756703

Please sign in to comment.