OldUnreal / UnrealTournamentPatches

Other
1.03k stars 30 forks source link

[FR] Allow function GetPropertyText() to retrieve arrays by index. #1622

Open vm-mar opened 2 months ago

vm-mar commented 2 months ago

Currently if you call GetPropertyText("ArrayVar") you will get its first value.

It should be added an option to access its values by using an indexer on the properyName in string. Example: GetPropertyText("ArrayVar[2]") or GetPropertyText("ArrayVar(2)") Maybe also a way to retrieve array lengths: GetPropertyText("ArrayVar.length")

an-eternity commented 1 month ago

Since ConsoleCommand() provides a way to access static object's array elements by their index, then it is probably possible to implement it the same way for GetPropertyText() too?.. Wonder, why original devs didn't do this... I miss this option a lot...