npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Is there a reason RTSPlayerAIController does not use RTSPlayerState? #196

Closed nsticco closed 2 years ago

nsticco commented 2 years ago

Hello, I notice RTSPlayerAIController does not seem to reference RTSPlayerState, while RTSPlayerController does. Is there an advantage / best practice to not using PlayerState with RTSPlayerAIController?

I was planning on adding PlayerState for AI in my game, but I wanted to see if there are pitfalls / downsides I should be aware of.

npruehs commented 2 years ago

Hey @nsticco !

I don't see why that shouldn't work. In fact, it might be a good idea to do so, to have access to player index/team index/own actors.

Best regards, Nick

nsticco commented 2 years ago

Thanks!