Page 1 of 1
Setting a team?
Posted: Sun Nov 14, 2010 9:47 am
by Rensa
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?
Re: Setting a team?
Posted: Sun Nov 14, 2010 11:29 am
by Jeronimo
I guess you mean:
This is a property of an instance of an ObjectSpawnerTemplate object created with
Code: Select all
Object.Create objectSpawnerTemplateName
and switches the objects defined for the template like so:
Code: Select all
Object.setObjectTemplate n objectName
Re: Setting a team?
Posted: Tue Nov 23, 2010 5:08 pm
by Rensa
Thanks mate, i ended up on using the SetOSid...
Re: Setting a team?
Posted: Tue Nov 23, 2010 6:15 pm
by Jeronimo
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.
Re: Setting a team?
Posted: Tue Nov 23, 2010 7:16 pm
by Rensa
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!
Re: Setting a team?
Posted: Tue Nov 23, 2010 9:58 pm
by Jeronimo
Glad I could help.
