Hi. I've just finished hooking up UT to a mySQL database. At the moment I've got a couple of stats for each character like speed, jump height, etc. What's the proper way to replicate this data to each client? Here's what I'm currently doing:
Extended PlayerReplicationInfo, added my var's to the replicate block
Extended Pawn
When the UT receives a query response from mySQL the data in the PRI gets updated
Overloaded the pawn's Tick function so on each tick I set the Pawn's attributes based on the PRI
This method seems inefficient, so I'm assuming there's a better (proper) way to do it
Thanks for any help
Extended PlayerReplicationInfo, added my var's to the replicate block
Extended Pawn
When the UT receives a query response from mySQL the data in the PRI gets updated
Overloaded the pawn's Tick function so on each tick I set the Pawn's attributes based on the PRI
This method seems inefficient, so I'm assuming there's a better (proper) way to do it
Thanks for any help