Hi. So i have one script that controls two castle (p1 - p2)
It has an export variable int for the team they in. (1 or 2)
But somehow its not working.
I tried also tried to change the variable on run like.
If name. P1castle change team =1
If P2castle change team =2
I print out their team on ready and it prints out 1-2
But the resource it generate only goes to player 1 which is controlled by the team int.
Should i instantiate the castles from a script? And not place them on? Or is this what classes for?
How do you do different teams normaly?