Advertisement
orfeasel

Data Table Row Retrieval

Dec 27th, 2015
13,646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. //Retrieve the Row based on the Row Name
  2. //The first parameter is the row name
  3. //I have yet to determine the second one, however, I will open a ticket on ue4 answerhub
  4. FPlayerStats* Row = DataTable->FindRow<FPlayerStats>(TEXT("1"), TEXT(""));
  5. if (Row)
  6. {
  7.     //Cast the XpToLevel to string so I can print it with GLog
  8.     FString output = FString::FromInt((*Row).XpToLevel);
  9.     GLog->Log(output);
  10.  
  11.     //Casting the Health to string...
  12.     output = FString::SanitizeFloat((*Row).Health);
  13.     GLog->Log(output);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement