Easy question, i made a kit, it has the team 1 and team 2 atribute.
In editor 42 i tried to spawn it, but it only spawns the first one, how can i make it so the 2 one will spawn.
Something like? Object.TeamVehicle?
Setting a team?
Re: Setting a team?
I guess you mean:
This is a property of an instance of an ObjectSpawnerTemplate object created with
and switches the objects defined for the template like so:
Code: Select all
Object.setTeam n
Code: Select all
Object.Create objectSpawnerTemplateName
Code: Select all
Object.setObjectTemplate n objectName
Re: Setting a team?
Thanks mate, i ended up on using the SetOSid...
Re: Setting a team?
Ok. 
Btw, you can put many more vehicles on one spawnerTemplate by using "Object.setObjectTemplate 3, 4, 5, ..." and activating them with the "Object.setTeam n" command. This won't work when SetOSId is set, because then the team ID will be overwritten and can only be 1 or 2.

Btw, you can put many more vehicles on one spawnerTemplate by using "Object.setObjectTemplate 3, 4, 5, ..." and activating them with the "Object.setTeam n" command. This won't work when SetOSId is set, because then the team ID will be overwritten and can only be 1 or 2.
Re: Setting a team?
Thanks again mate, with this technique i don't have to search for other free templates that i don't use. I can just make the new ones.
Really, i now can make my spawnable kits, Thanks again!
Really, i now can make my spawnable kits, Thanks again!