Hi there,
I'm working on a 1v1 RTS game and when a user has been looking for a match for a certain amount of time, the game goes into offline mode and the user plays a bot. The problem is, each user has a base that they spawn so when it's two actual people, one base is owned (and spawned) by one player and the other base is spawned by the other. When it's just one player playing a bot, I'm forced to spawn both bases on the one player's machine but I then have ownership over both bases which is not desired.
What is the best practice in this case to solve the problem? Do I check if we are in offline mode and if we are, I set the ownership manually? Any help is greatly appreciated, thanks in advance!
I'm working on a 1v1 RTS game and when a user has been looking for a match for a certain amount of time, the game goes into offline mode and the user plays a bot. The problem is, each user has a base that they spawn so when it's two actual people, one base is owned (and spawned) by one player and the other base is spawned by the other. When it's just one player playing a bot, I'm forced to spawn both bases on the one player's machine but I then have ownership over both bases which is not desired.
What is the best practice in this case to solve the problem? Do I check if we are in offline mode and if we are, I set the ownership manually? Any help is greatly appreciated, thanks in advance!