Object.SetTeam
MDT Description
Sets the team (1 = Axis, 2 = Allies) to which a object belongs. When not set this usually means that the base needs to be taken first before the spawn is even activated.
Source and more details
Additional Description